1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 01:25:48 +01:00

Fix :rehash/updating.

This commit is contained in:
Kris Maglione
2015-05-12 20:49:07 -07:00
parent fbdae38c9e
commit 1c2766371b
3 changed files with 15 additions and 5 deletions

View File

@@ -125,8 +125,16 @@ var Modules = function Modules(window) {
return p;
},
set: function window_set(target, prop, val) {
return target[prop] = val;
set: function window_set(target, prop, val, receiver) {
if (receiver !== target)
Object.defineProperty(receiver, prop, {
value: val,
enumerable: true, configurable: true, writable: true
});
else
target[prop] = val;
return true;
}
});
@@ -249,7 +257,9 @@ overlay.overlayWindow(Object.keys(config.overlays),
cleanup: function cleanup(window) {
overlay.windows.delete(window);
Cu.nukeSandbox(this.jsmodules);
JSMLoader.atexit(() => {
Cu.nukeSandbox(this.jsmodules);
});
},
unload: function unload(window) {