MCPcopy Index your code
hub / github.com/TruthHun/BookStack / createWatcher

Function createWatcher

static/vuejs/vue.runtime.esm.js:2852–2862  ·  view source on GitHub ↗
(vm, key, handler)

Source from the content-addressed store, hash-verified

2850}
2851
2852function createWatcher (vm, key, handler) {
2853 var options;
2854 if (isPlainObject(handler)) {
2855 options = handler;
2856 handler = handler.handler;
2857 }
2858 if (typeof handler === 'string') {
2859 handler = vm[handler];
2860 }
2861 vm.$watch(key, handler, options);
2862}
2863
2864function stateMixin (Vue) {
2865 // 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