|
|
@ -155,7 +155,7 @@ export class OB { |
|
|
|
eventName = eventName.toLowerCase(); |
|
|
|
eventName = eventName.toLowerCase(); |
|
|
|
|
|
|
|
|
|
|
|
/* alex:如果fn是null,就是把eventName上面所有方法都un掉*/ |
|
|
|
/* alex:如果fn是null,就是把eventName上面所有方法都un掉*/ |
|
|
|
if (fn === null) { |
|
|
|
if (!fn) { |
|
|
|
delete this._getEvents()[eventName]; |
|
|
|
delete this._getEvents()[eventName]; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const fns = this._getEvents()[eventName]; |
|
|
|
const fns = this._getEvents()[eventName]; |
|
|
|