MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / makeComputedGetter

Function makeComputedGetter

06.Router/basic/js/vue.js:8026–8039  ·  view source on GitHub ↗
(getter, owner)

Source from the content-addressed store, hash-verified

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

Callers 1

stateMixinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected