mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 09:25:45 +01:00
Memoize config.browser and config.tabbrowser.
This commit is contained in:
@@ -70,8 +70,8 @@ var ConfigBase = Class("ConfigBase", {
|
|||||||
util.overlayWindow(window, { append: append.elements() });
|
util.overlayWindow(window, { append: append.elements() });
|
||||||
},
|
},
|
||||||
|
|
||||||
get browser() window.gBrowser,
|
browser: Class.memoize(function () window.gBrowser),
|
||||||
get tabbrowser() window.gBrowser,
|
tabbrowser: Class.memoize(function () window.gBrowser),
|
||||||
|
|
||||||
get browserModes() [modes.NORMAL],
|
get browserModes() [modes.NORMAL],
|
||||||
|
|
||||||
@@ -522,6 +522,7 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
|
|||||||
// Hmm...
|
// Hmm...
|
||||||
let config1 = Object.create(config);
|
let config1 = Object.create(config);
|
||||||
let config2 = Object.create(config1);
|
let config2 = Object.create(config1);
|
||||||
|
config2.instance = config2;
|
||||||
update(config1, config.Local.superapply(config2, arguments));
|
update(config1, config.Local.superapply(config2, arguments));
|
||||||
update(config2, config.Local.apply(config2, arguments));
|
update(config2, config.Local.apply(config2, arguments));
|
||||||
modules.config = config2;
|
modules.config = config2;
|
||||||
|
|||||||
Reference in New Issue
Block a user