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

Function initState

static/vuejs/vue.runtime.esm.js:2653–2665  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

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

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