MCPcopy
hub / github.com/vuejs/core / emit

Function emit

packages/runtime-core/src/devtools.ts:44–50  ·  view source on GitHub ↗
(event: string, ...args: any[])

Source from the content-addressed store, hash-verified

42let devtoolsNotInstalled = false
43
44function emit(event: string, ...args: any[]) {
45 if (devtools) {
46 devtools.emit(event, ...args)
47 } else if (!devtoolsNotInstalled) {
48 buffer.push({ event, args })
49 }
50}
51
52export function setDevtoolsHook(hook: DevtoolsHook, target: any): void {
53 devtools = hook

Callers 15

devtoolsInitAppFunction · 0.70
devtoolsUnmountAppFunction · 0.70
devtoolsComponentEmitFunction · 0.70
setupFunction · 0.50
setupFunction · 0.50
setupFunction · 0.50
ChildFunction · 0.50
setupFunction · 0.50
onClickFunction · 0.50
setupFunction · 0.50

Calls 1

pushMethod · 0.65

Tested by 9

setupFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40
ChildFunction · 0.40
setupFunction · 0.40
onClickFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40