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

Function getRegistry

packages/runtime-core/src/compat/instanceEventEmitter.ts:16–24  ·  view source on GitHub ↗
(
  instance: ComponentInternalInstance,
)

Source from the content-addressed store, hash-verified

14>()
15
16export function getRegistry(
17 instance: ComponentInternalInstance,
18): EventRegistry {
19 let events = eventRegistryMap.get(instance)
20 if (!events) {
21 eventRegistryMap.set(instance, (events = Object.create(null)))
22 }
23 return events!
24}
25
26export function on(
27 instance: ComponentInternalInstance,

Callers 3

onFunction · 0.85
offFunction · 0.85
emitFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected