chore: error

This commit is contained in:
cha0s 2021-01-18 21:02:52 -06:00
parent 10a679bea4
commit 6d5c1a4a70

View File

@ -107,6 +107,9 @@ export default function EventEmitterMixin(Superclass) {
}
onSingleEvent(type, fn, that, once) {
if ('function' !== typeof fn) {
throw new TypeError('EventEmitter::onSingleEvent() requires function listener');
}
const listener = createListener(fn, that, type, once);
if (!(type in this.$$events)) {
this.$$events[type] = [];