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

Function createWatcher

static/vuejs/vue.runtime.common.js:2854–2864  ·  view source on GitHub ↗
(vm, key, handler)

Source from the content-addressed store, hash-verified

2852}
2853
2854function createWatcher (vm, key, handler) {
2855 var options;
2856 if (isPlainObject(handler)) {
2857 options = handler;
2858 handler = handler.handler;
2859 }
2860 if (typeof handler === 'string') {
2861 handler = vm[handler];
2862 }
2863 vm.$watch(key, handler, options);
2864}
2865
2866function stateMixin (Vue) {
2867 // flow somehow has problems with directly declared definition object

Callers 1

initWatchFunction · 0.70

Calls 1

isPlainObjectFunction · 0.70

Tested by

no test coverage detected