MCPcopy Create free account
hub / github.com/TruthHun/BookStack / initState

Function initState

static/vuejs/vue.runtime.common.js:2655–2667  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

2653}
2654
2655function initState (vm) {
2656 vm._watchers = [];
2657 var opts = vm.$options;
2658 if (opts.props) { initProps(vm, opts.props); }
2659 if (opts.methods) { initMethods(vm, opts.methods); }
2660 if (opts.data) {
2661 initData(vm);
2662 } else {
2663 observe(vm._data = {}, true /* asRootData */);
2664 }
2665 if (opts.computed) { initComputed(vm, opts.computed); }
2666 if (opts.watch) { initWatch(vm, opts.watch); }
2667}
2668
2669var isReservedProp = { key: 1, ref: 1, slot: 1 };
2670

Callers 1

initMixinFunction · 0.70

Calls 6

initPropsFunction · 0.70
initMethodsFunction · 0.70
initDataFunction · 0.70
observeFunction · 0.70
initComputedFunction · 0.70
initWatchFunction · 0.70

Tested by

no test coverage detected