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

Function Observer

static/vuejs/vue.js:731–745  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

defFunction · 0.70

Tested by

no test coverage detected