Merge pull request #138 from mikeric/prevent-value-setting-with-current-value
Prevent value setting with current value
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -308,7 +308,7 @@ Rivets.binders = | ... | @@ -308,7 +308,7 @@ Rivets.binders = |
308 | routine: (el, value) -> | 308 | routine: (el, value) -> |
309 | if el.type is 'select-multiple' | 309 | if el.type is 'select-multiple' |
310 | o.selected = o.value in value for o in el if value? | 310 | o.selected = o.value in value for o in el if value? |
311 | else | 311 | else if value?.toString() isnt el.value?.toString() |
312 | el.value = if value? then value else '' | 312 | el.value = if value? then value else '' |
313 | 313 | ||
314 | text: (el, value) -> | 314 | text: (el, value) -> | ... | ... |
-
Please register or sign in to post a comment