X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fmow.js;h=e2ad98f5d459f512954d8da5ee283f9509e991da;hb=refs%2Fheads%2Fupstream;hp=7149f9cba230ad1a01c1c3ae8a1d91e193b985e0;hpb=354a049cce8415487552ce405cce167b7071fe1f;p=dactyl.git diff --git a/common/content/mow.js b/common/content/mow.js index 7149f9c..e2ad98f 100644 --- a/common/content/mow.js +++ b/common/content/mow.js @@ -1,6 +1,6 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2013 Kris Maglione +// Copyright (c) 2008-2014 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this 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 });