diff options
author | portix <portix@gmx.net> | 2012-11-22 16:16:29 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-11-22 16:16:29 +0100 |
commit | b5df95d93b058d909a75497cede97e11631564a9 (patch) | |
tree | 62c72f6f47909409dc58b10503b44972aaad769c /scripts | |
parent | 1fbbeccbe3f1b052ae84ec8f74c65436f1305f93 (diff) | |
download | dwb-b5df95d93b058d909a75497cede97e11631564a9.zip |
New method 'replace' for replacing modules
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/dwb.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/dwb.js b/scripts/lib/dwb.js index 8786a04f..79cf8594 100644 --- a/scripts/lib/dwb.js +++ b/scripts/lib/dwb.js @@ -35,6 +35,11 @@ _modules[name] = module; } }, + "replace" : { + value : function(name, module) { + _modules[name] = module; + } + }, "require" : { value : function(names, callback) { if (names !== null && ! (names instanceof Array)) { |