Skip to content

Commit da58eda

Browse files
author
Evan You
committedJun 6, 2014
fix vuejs#288 v-with misbehaving with $watch
1 parent ded392f commit da58eda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/directives/with.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
if (!this.alone && !this.lock) {
4242
if (this.arg) {
4343
this.vm.$set(this.arg, value)
44-
} else {
44+
} else if (this.vm.$data !== value) {
4545
this.vm.$data = value
4646
}
4747
}

0 commit comments

Comments
 (0)
Please sign in to comment.