MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / fire

Function fire

src/common/index.js:35–38  ·  view source on GitHub ↗
(...data)

Source from the content-addressed store, hash-verified

33 return () => hooks.delete(cb);
34 },
35 fire(...data) {
36 // Set#forEach correctly iterates the remainder even if current callback unhooks itself
37 hooks.forEach(cb => cb(...data));
38 },
39 };
40}
41

Callers 7

options.jsFile · 0.70
updateFunction · 0.70
injectPageSandboxFunction · 0.50
useOpenerFunction · 0.50
initializeFunction · 0.50
fireBridgeEventFunction · 0.50
bindEventsFunction · 0.50

Calls 1

cbFunction · 0.70

Tested by

no test coverage detected