chore: error
This commit is contained in:
parent
10a679bea4
commit
6d5c1a4a70
|
@ -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] = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user