MDL-63763 javascript: don't have define( in AMD comments at top of files
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user