Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use explicit coercion to do the equality check against the incomming …

…value in the value binder's routine function. [#130]
  • Loading branch information...
commit dfa1d26b34ac926703b4113bb9230d10827b82d4 1 parent fadc0fc
@mikeric authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/
2  src/
@@ -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 if value isnt el.value
+ else if value?.toString() isnt el.value?.toString()
el.value = if value? then value else ''
text: (el, value) ->
Please sign in to comment.
Something went wrong with that request. Please try again.