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

Method dispatch

packages/runtime-dom/src/apiCustomElement.ts:583–592  ·  view source on GitHub ↗
(event: string, args: any[])

Source from the content-addressed store, hash-verified

581 }
582
583 const dispatch = (event: string, args: any[]) => {
584 this.dispatchEvent(
585 new CustomEvent(
586 event,
587 isPlainObject(args[0])
588 ? extend({ detail: args }, args[0])
589 : { detail: args },
590 ),
591 )
592 }
593
594 // intercept emit
595 instance.emit = (event: string, ...args: any[]) => {

Callers

nothing calls this directly

Calls 1

isPlainObjectFunction · 0.90

Tested by

no test coverage detected