diff options
-rw-r--r-- | asdfghjkl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/asdfghjkl.js b/asdfghjkl.js index 7826a48..5364305 100644 --- a/asdfghjkl.js +++ b/asdfghjkl.js @@ -97,11 +97,12 @@ let PLUGIN_INFO = xml` function around (obj, name, func) { let next = obj[name]; - obj[name] = function () + obj[name] = function () { let (self = this, args = Array.from(arguments)) func.call(self, function () next.apply(self, args), args); + } } around(events, 'onKeyPress', function (next, [event]) { |