aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asdfghjkl.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/asdfghjkl.js b/asdfghjkl.js
index 5364305..d2bfc8f 100644
--- a/asdfghjkl.js
+++ b/asdfghjkl.js
@@ -98,10 +98,10 @@ let PLUGIN_INFO = xml`
function around (obj, name, func) {
let next = obj[name];
obj[name] = function () {
- let (self = this, args = Array.from(arguments))
- func.call(self,
- function () next.apply(self, args),
- args);
+ let args = Array.from(arguments);
+ func.call(this,
+ () => next.apply(this, args),
+ args);
}
}