1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 19:44:13 +01:00

Make .closure a Proxy and rename .bound

This commit is contained in:
Kris Maglione
2014-03-16 14:32:04 -07:00
parent 03596bd75d
commit af88d531d0
27 changed files with 113 additions and 119 deletions

View File

@@ -46,7 +46,7 @@ var Buffer = Module("Buffer", {
this.win = win;
},
get addPageInfoSection() Buffer.closure.addPageInfoSection,
get addPageInfoSection() Buffer.bound.addPageInfoSection,
get pageInfo() Buffer.pageInfo,
@@ -2057,7 +2057,7 @@ var Buffer = Module("Buffer", {
events: function initEvents(dactyl, modules, window) {
let { buffer, config, events } = modules;
events.listen(config.browser, "scroll", buffer.closure._updateBufferPosition, false);
events.listen(config.browser, "scroll", buffer.bound._updateBufferPosition, false);
},
mappings: function initMappings(dactyl, modules, window) {
let { Editor, Events, buffer, editor, events, ex, mappings, modes, options, tabs } = modules;