-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.5
-
MOODLE_25_STABLE
-
MOODLE_25_STABLE
-
As discussed in the chat the other day, SimpleYUI is loaded (and thus set up) before we define YUI_config in the page header.
You can see this by setting:
$CFG->debug = 0;
|
Refreshing your page, and in your browser JS console running:
Y.log("This should not be shown");
|
Which will of course display your message.
Conversely:
YUI().use('node', function(Y) { Y.log("This won't actually be shown"); });
|
Will not actually show a message (though your browser may display info about the YUI() return value itself).
The best option I see is to move the definition of YUI_config to above the inclusion of the simpleYUI script.
This will need to be integrated after MDL-36198 and MDL-38391.