diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-02-03 09:04:23 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-02-03 09:04:23 -0500 |
commit | 4a09c97eb1dd5db2d300e17bde15bd88563616f9 (patch) | |
tree | 6740816302e4123d1083df55f3708617c84f0ce7 /common/content/buffer.js | |
parent | 346cf2531a86b075074ecde7f3f25c6c24e14f0c (diff) | |
download | pentadactyl-4a09c97eb1dd5db2d300e17bde15bd88563616f9.tar.gz |
More lazy instantiation. Look out for breakage.
Diffstat (limited to 'common/content/buffer.js')
-rw-r--r-- | common/content/buffer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index 9c5f3031..1357afd6 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -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; |