Skip to content

Commit 66abd23

Browse files
author
Evan You
committed
fix meta property value checking
1 parent 482fdc0 commit 66abd23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,9 @@ CompilerProto.defineProp = function (key, binding) {
631631
CompilerProto.defineMeta = function (key, binding) {
632632
var vm = this.vm,
633633
ob = this.observer,
634-
value = binding.value = vm[key] || this.data[key]
634+
value = binding.value = key in vm
635+
? vm[key]
636+
: this.data[key]
635637
// remove initital meta in data, since the same piece
636638
// of data can be observed by different VMs, each have
637639
// its own associated meta info.

0 commit comments

Comments
 (0)