mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 17:04:12 +01:00
First work towards group-local option values.
This commit is contained in:
@@ -299,10 +299,10 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
overlay.windows = array.uniq(overlay.windows.concat(window), true);
|
||||
}
|
||||
|
||||
if (overlay.onWindowVisible)
|
||||
overlay.onWindowVisible.push(finish);
|
||||
else
|
||||
if (window.dactylWindowVisible)
|
||||
finish();
|
||||
else
|
||||
overlay.onWindowVisible.push(finish);
|
||||
|
||||
modules.events.listen(window, "unload", function onUnload() {
|
||||
window.removeEventListener("unload", onUnload.wrapped, false);
|
||||
@@ -350,7 +350,7 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
"xul-window-visible": function () {
|
||||
if (this.onWindowVisible) {
|
||||
this.onWindowVisible.forEach(function (f) f.call(this), this);
|
||||
this.onWindowVisible = null;
|
||||
this.onWindowVisible = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -367,7 +367,7 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
|
||||
for (let doc in util.iterDocuments())
|
||||
if (~["interactive", "complete"].indexOf(doc.readyState)) {
|
||||
this.onWindowVisible = null;
|
||||
doc.defaultView.dactylWindowVisible = true;
|
||||
this._loadOverlays(doc.defaultView);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user