MCPcopy
hub / github.com/fanmingming/live / initWatch

Function initWatch

m3u8/vue.js:4869–4880  ·  view source on GitHub ↗
(vm, watch)

Source from the content-addressed store, hash-verified

4867 }
4868
4869 function initWatch (vm, watch) {
4870 for (var key in watch) {
4871 var handler = watch[key];
4872 if (Array.isArray(handler)) {
4873 for (var i = 0; i < handler.length; i++) {
4874 createWatcher(vm, key, handler[i]);
4875 }
4876 } else {
4877 createWatcher(vm, key, handler);
4878 }
4879 }
4880 }
4881
4882 function createWatcher (
4883 vm,

Callers 1

initStateFunction · 0.85

Calls 1

createWatcherFunction · 0.85

Tested by

no test coverage detected