Add missing spreads (#552)
This commit is contained in:
parent
694120b8a5
commit
83a577fa56
@ -261,12 +261,12 @@ class EventListenerCollection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addListener(object, ...args) {
|
addListener(object, ...args) {
|
||||||
object.addListener(args);
|
object.addListener(...args);
|
||||||
this._eventListeners.push(['removeListener', object, ...args]);
|
this._eventListeners.push(['removeListener', object, ...args]);
|
||||||
}
|
}
|
||||||
|
|
||||||
on(object, ...args) {
|
on(object, ...args) {
|
||||||
object.on(args);
|
object.on(...args);
|
||||||
this._eventListeners.push(['off', object, ...args]);
|
this._eventListeners.push(['off', object, ...args]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user