summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-01-08 14:39:03 +0100
committerportix <none@none>2013-01-08 14:39:03 +0100
commit541db868ce3df6d1890d4031426d6505b077226b (patch)
tree01480b72c5901a6424457f7aa23f70b6236598cb /scripts
parenta086ab66867e10bc7dfc8361d4ad174b9fa76b22 (diff)
downloaddwb-541db868ce3df6d1890d4031426d6505b077226b.zip
Implementing extensions.disableAll; fixing possible segfault in global_unbind
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/extensions.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/lib/extensions.js b/scripts/lib/extensions.js
index 9825c02f..40bf6d6c 100644
--- a/scripts/lib/extensions.js
+++ b/scripts/lib/extensions.js
@@ -217,6 +217,14 @@
return _unload(name, true);
}
},
+ "disableAll" :
+ {
+ value : function()
+ {
+ for (var key in _registered)
+ _unload(key, true);
+ }
+ },
"reload" :
{
value : function ()