Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201a26b
)
MDL-51222 Javascript: Reapply YUI config after adding modules
author
Andrew Nicols
<andrew@nicols.co.uk>
Wed, 23 Sep 2015 02:49:59 +0000
(10:49 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Wed, 23 Sep 2015 02:49:59 +0000
(10:49 +0800)
lib/javascript-static.js
patch
|
blob
|
blame
|
history
diff --git
a/lib/javascript-static.js
b/lib/javascript-static.js
index
2641a9f
..
349d7eb
100644
(file)
--- a/
lib/javascript-static.js
+++ b/
lib/javascript-static.js
@@
-9,6
+9,8
@@
M.yui.add_module = function(modules) {
for (var modname in modules) {
YUI_config.modules[modname] = modules[modname];
}
+ // Ensure thaat the YUI_config is applied to the main YUI instance.
+ Y.applyConfig(YUI_config);
};
/**
* The gallery version to use when loading YUI modules from the gallery.