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

Function Observer

static/vuejs/vue.esm.js:725–739  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

723 * collect dependencies and dispatches updates.
724 */
725var Observer = function Observer (value) {
726 this.value = value;
727 this.dep = new Dep();
728 this.vmCount = 0;
729 def(value, '__ob__', this);
730 if (Array.isArray(value)) {
731 var augment = hasProto
732 ? protoAugment
733 : copyAugment;
734 augment(value, arrayMethods, arrayKeys);
735 this.observeArray(value);
736 } else {
737 this.walk(value);
738 }
739};
740
741/**
742 * Walk through each property and convert them into

Callers

nothing calls this directly

Calls 1

defFunction · 0.70

Tested by

no test coverage detected