fix meta property value checking

This commit is contained in:
Evan You 2014-03-11 14:08:15 -04:00
parent 482fdc0de4
commit 66abd235b2
1 changed files with 3 additions and 1 deletions

View File

@ -631,7 +631,9 @@ CompilerProto.defineProp = function (key, binding) {
CompilerProto.defineMeta = function (key, binding) {
var vm = this.vm,
ob = this.observer,
value = binding.value = vm[key] || this.data[key]
value = binding.value = key in vm
? vm[key]
: this.data[key]
// remove initital meta in data, since the same piece
// of data can be observed by different VMs, each have
// its own associated meta info.