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

[bootstrap] Fix stupid bug.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-25 13:13:10 -05:00
parent 8da718d47b
commit 203f8799da
5 changed files with 20 additions and 15 deletions

View File

@@ -18,8 +18,8 @@ if (!JSMLoader)
let global = this.globals[url];
for each (let prop in Object.getOwnPropertyNames(global))
try {
if (!set.has(this.builtin, prop) && global[prop] != this && global[prop] != set)
delete global[prop]
if (!set.has(this.builtin, prop) && [this, set].indexOf(global[prop]) < 0)
delete global[prop];
}
catch (e) {}
@@ -36,7 +36,7 @@ if (!JSMLoader)
},
registerGlobal: function registerGlobal(uri, obj) {
if (Cu.getGlobalForObject)
this.globals[uri] = Cu.getGlobalForObject(obj);
this.globals[uri.replace(/.* -> /, "")] = Cu.getGlobalForObject(obj);
}
};