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

Function initState

static/vuejs/vue.common.js:2659–2671  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

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

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