1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 04:07:59 +01:00

More lazy instantiation. Look out for breakage.

This commit is contained in:
Kris Maglione
2011-02-03 09:04:23 -05:00
parent 346cf2531a
commit 4a09c97eb1
10 changed files with 66 additions and 39 deletions

View File

@@ -1640,9 +1640,9 @@ var Buffer = Module("buffer", {
};
},
events: function () {
events.addSessionListener(config.browser, "DOMContentLoaded", this.closure.onDOMContentLoaded, true);
events.addSessionListener(config.browser, "load", this.closure.onPageLoad, true);
events.addSessionListener(config.browser, "scroll", this.closure._updateBufferPosition, false);
events.addSessionListener(config.browser, "DOMContentLoaded", buffer.closure.onDOMContentLoaded, true);
events.addSessionListener(config.browser, "load", buffer.closure.onPageLoad, true);
events.addSessionListener(config.browser, "scroll", buffer.closure._updateBufferPosition, false);
},
mappings: function () {
var myModes = config.browserModes;