summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-12-05 14:57:23 +0100
committerportix <portix@gmx.net>2012-12-05 14:57:23 +0100
commitc8d8c9d525d6b97b8842da3689d2a4c88105547e (patch)
treea4b032126cd633c7f112df632215359e7e1f1270 /scripts
parentdbeec3f7a8b6cdf6a080d24aa4297422fe3d70cb (diff)
downloaddwb-c8d8c9d525d6b97b8842da3689d2a4c88105547e.zip
Freeze global object in _initBefore
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/dwb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/dwb.js b/scripts/lib/dwb.js
index f40848b7..a66afb67 100644
--- a/scripts/lib/dwb.js
+++ b/scripts/lib/dwb.js
@@ -106,7 +106,6 @@
for (var i=0, l=_callbacks.length; i<l; i++)
_applyRequired(_callbacks[i].names, _callbacks[i].callback);
- Object.freeze(this);
},
configurable : true
},
@@ -115,6 +114,7 @@
value : function(contexts)
{
_contexts = contexts;
+ Object.freeze(this);
},
configurable : true
}