(key)
| 2806 | } |
| 2807 | |
| 2808 | function createComputedGetter (key) { |
| 2809 | return function computedGetter () { |
| 2810 | var watcher = this._computedWatchers && this._computedWatchers[key]; |
| 2811 | if (watcher) { |
| 2812 | if (watcher.dirty) { |
| 2813 | watcher.evaluate(); |
| 2814 | } |
| 2815 | if (Dep.target) { |
| 2816 | watcher.depend(); |
| 2817 | } |
| 2818 | return watcher.value |
| 2819 | } |
| 2820 | } |
| 2821 | } |
| 2822 | |
| 2823 | function initMethods (vm, methods) { |
| 2824 | var props = vm.$options.props; |