MCPcopy
hub / github.com/501351981/vue-office / push

Function push

core/packages/vue-excel/src/x-spreadsheet/component/event.js:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91 function on(eventName, callback) {
92 const push = () => {
93 const currentListener = listeners.get(eventName);
94 return (Array.isArray(currentListener)
95 && currentListener.push(callback))
96 || false;
97 };
98
99 const create = () => listeners.set(eventName, [].concat(callback));
100

Callers 1

onFunction · 0.85

Calls 2

getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected