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

Function initWatch

static/vuejs/vue.js:2845–2856  ·  view source on GitHub ↗
(vm, watch)

Source from the content-addressed store, hash-verified

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

Callers 1

initStateFunction · 0.70

Calls 1

createWatcherFunction · 0.70

Tested by

no test coverage detected