MDL-63763 javascript: don't have define( in AMD comments at top of files

This commit is contained in:
Nick Phillips
2018-10-25 16:21:35 +13:00
parent daf0b4f08b
commit 2070142f46
+4 -1
View File
@@ -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 <ul> or <tbody>) - selector or element
*
* // Listen to the events when element is dragged.