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

Function initState

static/vuejs/vue.runtime.js:2657–2669  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

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

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