MCPcopy
hub / github.com/fanmingming/live / dependArray

Function dependArray

m3u8/vue.js:1144–1152  ·  view source on GitHub ↗

* Collect dependencies on array elements when the array is touched, since * we cannot intercept array element access like property getters.

(value)

Source from the content-addressed store, hash-verified

1142 * we cannot intercept array element access like property getters.
1143 */
1144 function dependArray (value) {
1145 for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
1146 e = value[i];
1147 e && e.__ob__ && e.__ob__.dep.depend();
1148 if (Array.isArray(e)) {
1149 dependArray(e);
1150 }
1151 }
1152 }
1153
1154 /* */
1155

Callers 1

defineReactive$$1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected