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