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

Function createComputedGetter

static/vuejs/vue.runtime.esm.js:2802–2815  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

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

Callers 1

defineComputedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected