summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-11-22 16:16:29 +0100
committerportix <portix@gmx.net>2012-11-22 16:16:29 +0100
commitb5df95d93b058d909a75497cede97e11631564a9 (patch)
tree62c72f6f47909409dc58b10503b44972aaad769c /scripts
parent1fbbeccbe3f1b052ae84ec8f74c65436f1305f93 (diff)
downloaddwb-b5df95d93b058d909a75497cede97e11631564a9.zip
New method 'replace' for replacing modules
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/dwb.js5
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)) {