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 =
routine: (el, value) ->
if el.type is 'select-multiple'
o.selected = o.value in value for o in el if value?
else
else if value?.toString() isnt el.value?.toString()
el.value = if value? then value else ''
text: (el, value) ->
......