From 83a577fa569e5a6d468e3b304313106bba3e1e49 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 23 May 2020 14:18:02 -0400 Subject: Add missing spreads (#552) --- ext/mixed/js/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mixed') 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]); } -- cgit v1.2.3