* @function Events.prototype.remove * @description 删除某个事件类型的所有监听,如果该事件类型没有注册,则不做任何操作。 * @param {string} type - 事件类型。
(type)
| 340 | * @param {string} type - 事件类型。 |
| 341 | */ |
| 342 | remove(type) { |
| 343 | if (this.listeners[type] != null) { |
| 344 | this.listeners[type] = []; |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * @function Events.prototype.triggerEvent |
no outgoing calls
no test coverage detected