aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-05-23 14:18:02 -0400
committerGitHub <noreply@github.com>2020-05-23 14:18:02 -0400
commit83a577fa569e5a6d468e3b304313106bba3e1e49 (patch)
tree415a374f4dec22a6f89748937b126ef7a3148499 /ext/mixed
parent694120b8a5cce89101871ee58f2b7c410f909920 (diff)
Add missing spreads (#552)
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/core.js b/ext/mixed/js/core.js
index fa66033d..4c22cae7 100644
--- a/ext/mixed/js/core.js
+++ b/ext/mixed/js/core.js
@@ -261,12 +261,12 @@ class EventListenerCollection {
}
addListener(object, ...args) {
- object.addListener(args);
+ object.addListener(...args);
this._eventListeners.push(['removeListener', object, ...args]);
}
on(object, ...args) {
- object.on(args);
+ object.on(...args);
this._eventListeners.push(['off', object, ...args]);
}