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

Function Observer

static/vuejs/vue.runtime.common.js:723–737  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

defFunction · 0.70

Tested by

no test coverage detected