Просмотр исходного кода

fix #288 v-with misbehaving with $watch

Evan You 12 лет назад
Родитель
Сommit
da58edaad1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/directives/with.js

+ 1 - 1
src/directives/with.js

@@ -41,7 +41,7 @@ module.exports = {
         if (!this.alone && !this.lock) {
             if (this.arg) {
                 this.vm.$set(this.arg, value)
-            } else {
+            } else if (this.vm.$data !== value) {
                 this.vm.$data = value
             }
         }