468048c0 by Michael Richards

Merge pull request #138 from mikeric/prevent-value-setting-with-current-value

Prevent value setting with current value
2 parents 5cd20248 dfa1d26b
...@@ -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) ->
......