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

Function initWatch

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

Source from the content-addressed store, hash-verified

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

Callers 1

initStateFunction · 0.70

Calls 1

createWatcherFunction · 0.70

Tested by

no test coverage detected