1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-31 21:13:32 +02: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

@@ -90,14 +90,14 @@ var MOW = Module("mow", {
if (modes.main != modes.OUTPUT_MULTILINE) {
modes.push(modes.OUTPUT_MULTILINE, null, {
onKeyPress: this.closure.onKeyPress,
onKeyPress: this.bound.onKeyPress,
leave: this.closure(function leave(stack) {
leave: stack => {
if (stack.pop)
for (let message in values(this.messages))
if (message.leave)
message.leave(stack);
}),
},
window: this.window
});