Browse Source

refactor: tweak dependArray change

dev
Evan You 7 years ago
parent
commit
c8564abd62
  1. 6
      src/core/observer/index.js

6
src/core/observer/index.js

@ -156,9 +156,9 @@ export function defineReactive (
dep.depend()
if (childOb) {
childOb.dep.depend()
}
if (Array.isArray(value) && Object.isExtensible(value)) {
dependArray(value)
if (Array.isArray(value)) {
dependArray(value)
}
}
}
return value

Loading…
Cancel
Save