MCPcopy Create free account
hub / github.com/TruthHun/BookStack / createComputedGetter

Function createComputedGetter

static/vuejs/vue.js:2808–2821  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

2806}
2807
2808function 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
2823function initMethods (vm, methods) {
2824 var props = vm.$options.props;

Callers 1

defineComputedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected