perf: no spread

This commit is contained in:
cha0s 2019-05-02 21:15:22 -05:00
parent eb6bd48bd4
commit 8f22306f0a

View File

@ -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) {