From a28bbd0b3f98020371e2541f05563440a26619cf Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Mon, 28 May 2012 16:38:02 -0700 Subject: [PATCH] Definition will not have an effect if already defined - force redefinition. --- src/static/js/pluginfw/parent_require.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/static/js/pluginfw/parent_require.js b/src/static/js/pluginfw/parent_require.js index 971687467..cd3b9218f 100644 --- a/src/static/js/pluginfw/parent_require.js +++ b/src/static/js/pluginfw/parent_require.js @@ -19,6 +19,9 @@ * @params reqModuleName Module name e.g. (ep_etherpad-lite/static/js/plugins) */ exports.getRequirementFromParent = function(requireDefObj, reqModuleName) { + // Force the 'undefinition' of the modules (if they already have been loaded). + delete (requireDefObj._definitions)[reqModuleName]; + delete (requireDefObj._modules)[reqModuleName]; requireDefObj.define(reqModuleName, function(require, exports, module) { var t = parent; var max = 0; // make sure I don't go up more than 10 times