aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
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]);
}