From 2070142f46ecd563ef080aff890c986ea8e04ce5 Mon Sep 17 00:00:00 2001 From: Nick Phillips Date: Thu, 25 Oct 2018 16:05:41 +1300 Subject: [PATCH] MDL-63763 javascript: don't have define( in AMD comments at top of files --- lib/amd/src/sortable_list.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/amd/src/sortable_list.js b/lib/amd/src/sortable_list.js index 3806563b844..0f487806f3b 100644 --- a/lib/amd/src/sortable_list.js +++ b/lib/amd/src/sortable_list.js @@ -24,7 +24,10 @@ * * Attach this JS module to this list: * - * define(['jquery', 'core/sortable_list'], function($, SortableList) { + * Space between define and ( critical in comment but not allowed in code in order to function + * correctly with Moodle's requirejs.php + * + * define (['jquery', 'core/sortable_list'], function($, SortableList) { * var list = new SortableList('ul.my-awesome-list'); // source list (usually