-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.6
-
MOODLE_36_STABLE
A minor issue and only happens in developer mode where the minified js is not run.
The define comment in lib/amd/src/sortable_list.js will cause a mismatch anonymous define() error in the console log if a plugin is using jquery in an old way such as
$PAGE->requires->jquery();
|
$PAGE->requires->js(new moodle_url('/admin/tool/someplugin/code.js'));
|
It seems that even though the define is in a comment the regex that finds the defines doesn't take comments into account.
I'm not sure that anything needs to be done here. Hopefully any developers that hit this problem will find this issue.