(getter, owner)
| 8024 | }; |
| 8025 | |
| 8026 | function makeComputedGetter(getter, owner) { |
| 8027 | var watcher = new Watcher(owner, getter, null, { |
| 8028 | lazy: true |
| 8029 | }); |
| 8030 | return function computedGetter() { |
| 8031 | if (watcher.dirty) { |
| 8032 | watcher.evaluate(); |
| 8033 | } |
| 8034 | if (Dep.target) { |
| 8035 | watcher.depend(); |
| 8036 | } |
| 8037 | return watcher.value; |
| 8038 | }; |
| 8039 | } |
| 8040 | |
| 8041 | /** |
| 8042 | * Setup instance methods. Methods must be bound to the |