MCPcopy Index your code
hub / github.com/TruthHun/BookStack / initWatch

Function initWatch

static/vuejs/vue.runtime.esm.js:2839–2850  ·  view source on GitHub ↗
(vm, watch)

Source from the content-addressed store, hash-verified

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

Callers 1

initStateFunction · 0.70

Calls 1

createWatcherFunction · 0.70

Tested by

no test coverage detected