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

Function createWatcher

static/vuejs/vue.js:2858–2868  ·  view source on GitHub ↗
(vm, key, handler)

Source from the content-addressed store, hash-verified

2856}
2857
2858function createWatcher (vm, key, handler) {
2859 var options;
2860 if (isPlainObject(handler)) {
2861 options = handler;
2862 handler = handler.handler;
2863 }
2864 if (typeof handler === 'string') {
2865 handler = vm[handler];
2866 }
2867 vm.$watch(key, handler, options);
2868}
2869
2870function stateMixin (Vue) {
2871 // 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