perf: no spread
This commit is contained in:
parent
eb6bd48bd4
commit
8f22306f0a
|
@ -15,7 +15,9 @@ export function EventEmitterMixin(Superclass) {
|
|||
this.$$events = Object.create(null);
|
||||
}
|
||||
|
||||
addListener(...args) { return this.on(...args); }
|
||||
addListener(typesOrType, fn, that) {
|
||||
return this.on(typesOrType, fn, that);
|
||||
}
|
||||
|
||||
// Notify ALL the listeners!
|
||||
emit(type, ...args) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user