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

Function createComputedGetter

static/vuejs/vue.esm.js:2806–2819  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

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

Callers 1

defineComputedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected