MCPcopy Create free account
hub / github.com/ygs-code/vue / initEvents

Function initEvents

vue.js:3596–3605  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

3594 * */
3595
3596 function initEvents(vm) {
3597 vm._events = Object.create(null);
3598 vm._hasHookEvent = false;
3599 // init parent attached events 初始化 父亲事件
3600 var listeners = vm.$options._parentListeners;
3601 if (listeners) {
3602 //更新组件事件
3603 updateComponentListeners(vm, listeners);
3604 }
3605 }
3606
3607 var target;
3608

Callers 1

initMixinFunction · 0.85

Calls 1

updateComponentListenersFunction · 0.85

Tested by

no test coverage detected