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

Function initWatch

static/vuejs/vue.runtime.common.js:2841–2852  ·  view source on GitHub ↗
(vm, watch)

Source from the content-addressed store, hash-verified

2839}
2840
2841function initWatch (vm, watch) {
2842 for (var key in watch) {
2843 var handler = watch[key];
2844 if (Array.isArray(handler)) {
2845 for (var i = 0; i < handler.length; i++) {
2846 createWatcher(vm, key, handler[i]);
2847 }
2848 } else {
2849 createWatcher(vm, key, handler);
2850 }
2851 }
2852}
2853
2854function createWatcher (vm, key, handler) {
2855 var options;

Callers 1

initStateFunction · 0.70

Calls 1

createWatcherFunction · 0.70

Tested by

no test coverage detected