Skip to content

Commit

Permalink
fix: fix Data hijacking demo code in framework page
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZhang123 committed Jul 25, 2018
1 parent 4aadd9c commit 541537e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Framework/framework-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function observe(obj) {
if (!obj || typeof obj !== 'object') {
return
}
Object.keys(data).forEach(key => {
defineReactive(data, key, data[key])
Object.keys(obj).forEach(key => {
defineReactive(obj, key, obj[key])
})
}

Expand Down
4 changes: 2 additions & 2 deletions Framework/framework-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function observe(obj) {
if (!obj || typeof obj !== 'object') {
return
}
Object.keys(data).forEach(key => {
defineReactive(data, key, data[key])
Object.keys(obj).forEach(key => {
defineReactive(obj, key, obj[key])
})
}

Expand Down

0 comments on commit 541537e

Please sign in to comment.