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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user