MDL-51222 Javascript: Reapply YUI config after adding modules

This commit is contained in:
Andrew Nicols
2015-09-23 10:49:59 +08:00
parent 201a26bbaa
commit 57884502bc
+2
View File
@@ -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.