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

Fix some startup bottlenecks.

This commit is contained in:
Kris Maglione
2015-12-21 00:52:38 -08:00
parent 5a42ae42d6
commit 7aabc153f5
8 changed files with 136 additions and 69 deletions

View File

@@ -122,15 +122,14 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
global = Class.objectGlobal(obj);
return (global && global.dactyl ||
overlay.activeWindow && overlay.activeWindow.dactyl ||
loaded.overlay && overlay.activeWindow && overlay.activeWindow.dactyl ||
anythingObjectHack);
}, {
get(target, prop) {
if (prop in target)
return target[prop];
if (loaded.overlay)
return target()[prop];
return target()[prop];
},
}),