MCPcopy
hub / github.com/fanmingming/live / initState

Function initState

m3u8/vue.js:4628–4642  ·  view source on GitHub ↗
(vm)

Source from the content-addressed store, hash-verified

4626 }
4627
4628 function initState (vm) {
4629 vm._watchers = [];
4630 var opts = vm.$options;
4631 if (opts.props) { initProps(vm, opts.props); }
4632 if (opts.methods) { initMethods(vm, opts.methods); }
4633 if (opts.data) {
4634 initData(vm);
4635 } else {
4636 observe(vm._data = {}, true /* asRootData */);
4637 }
4638 if (opts.computed) { initComputed(vm, opts.computed); }
4639 if (opts.watch && opts.watch !== nativeWatch) {
4640 initWatch(vm, opts.watch);
4641 }
4642 }
4643
4644 function initProps (vm, propsOptions) {
4645 var propsData = vm.$options.propsData || {};

Callers 1

initMixinFunction · 0.85

Calls 6

initPropsFunction · 0.85
initMethodsFunction · 0.85
initDataFunction · 0.85
observeFunction · 0.85
initComputedFunction · 0.85
initWatchFunction · 0.85

Tested by

no test coverage detected