(vm)
| 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 || {}; |
no test coverage detected