1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 12:45:45 +01:00

Make 'stal' a string option.

This commit is contained in:
Kris Maglione
2010-12-29 15:03:34 -05:00
parent 7a0c7dacbe
commit d2c8d0112f
5 changed files with 34 additions and 14 deletions

View File

@@ -16,11 +16,15 @@ if (!JSMLoader)
for each (let prop in Object.getOwnPropertyNames(global))
try {
if (!set.has(this.builtin, prop) &&
[this, set].indexOf(Object.getOwnPropertyDescriptor(global, prop).value) < 0)
delete global[prop];
if (!(prop in this.builtin) &&
[this, set].indexOf(Object.getOwnPropertyDescriptor(global, prop).value) < 0 &&
!global.__lookupGetter__(prop))
global[prop] = null;
}
catch (e) {
dump("Deleting property " + prop + " on " + url + ":\n " + e + "\n");
Components.utils.reportError(e);
}
catch (e) {}
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader)