Add missing spreads (#552)

This commit is contained in:
toasted-nutbread 2020-05-23 14:18:02 -04:00 committed by GitHub
parent 694120b8a5
commit 83a577fa56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
}