summaryrefslogtreecommitdiff
path: root/scripts/lib/dwb.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/dwb.js')
-rw-r--r--scripts/lib/dwb.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/dwb.js b/scripts/lib/dwb.js
index 26605c62..1c32bc2d 100644
--- a/scripts/lib/dwb.js
+++ b/scripts/lib/dwb.js
@@ -24,7 +24,7 @@
modules.push(_modules[name]);
}
if (callback)
- callback.apply(this, modules);
+ callback.apply(callback, modules);
}
};
var _contexts = {};
@@ -134,11 +134,12 @@
{
value : function()
{
- var i;
+ var i, l;
_initialized = true;
for (i=0, l=_callbacks.length; i<l; i++)
+ {
_applyRequired(_callbacks[i].names, _callbacks[i].callback);
-
+ }
},
configurable : true
},