mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-08 05:03:31 +02:00
Fix some startup bottlenecks.
This commit is contained in:
@@ -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];
|
||||
},
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user