MCPcopy Index your code
hub / github.com/TruthHun/BookStack / initState

Function initState

static/vuejs/vue.js:2661–2673  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

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

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