Skip to content

Commit

Permalink
chore: add missing
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Sep 17, 2019
1 parent 9eba2b5 commit c1b01b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/shared/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export default function createMixin (Vue, options) {
if (!this[rootConfigKey]) {
this[rootConfigKey] = true

let p = this.$parent
while (p && p !== $root) {
if (isUndefined(p[rootConfigKey])) {
p[rootConfigKey] = false
let parent = this.$parent
while (parent && parent !== $root) {
if (isUndefined(parent[rootConfigKey])) {
parent[rootConfigKey] = false
}
p = p.$parent
parent = parent.$parent
}
}

Expand Down Expand Up @@ -140,7 +140,7 @@ export default function createMixin (Vue, options) {

// no need to add this hooks on server side
updateOnLifecycleHook.forEach((lifecycleHook) => {
ensuredPush($options, lifecycleHook, () => triggerUpdate(this, lifecycleHook))
ensuredPush($options, lifecycleHook, () => triggerUpdate($root, lifecycleHook))
})
},
// TODO: move back into beforeCreate when Vue issue is resolved
Expand Down
2 changes: 1 addition & 1 deletion test/components/changed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export default {
return {
childVisible: false
}
f }
}
}
</script>

0 comments on commit c1b01b9

Please sign in to comment.