diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-05-23 14:18:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 14:18:02 -0400 |
commit | 83a577fa569e5a6d468e3b304313106bba3e1e49 (patch) | |
tree | 415a374f4dec22a6f89748937b126ef7a3148499 /ext/mixed | |
parent | 694120b8a5cce89101871ee58f2b7c410f909920 (diff) |
Add missing spreads (#552)
Diffstat (limited to 'ext/mixed')
-rw-r--r-- | ext/mixed/js/core.js | 4 |
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]); } |