MCPcopy
hub / github.com/iChochy/NCE / clear

Method clear

js/managers/EventManager.js:124–129  ·  view source on GitHub ↗

* 清空所有事件监听

()

Source from the content-addressed store, hash-verified

122 * 清空所有事件监听
123 */
124 clear() {
125 for (const { target, event, handler, options } of this.listeners.values()) {
126 target.removeEventListener(event, handler, options);
127 }
128 this.listeners.clear();
129 }
130
131 /**
132 * 获取监听器的唯一键

Callers 6

loadBookConfigMethod · 0.45
destroyMethod · 0.45
clearStorageFunction · 0.45
clearMethod · 0.45
clearCacheMethod · 0.45
resetMethod · 0.45

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected