Use explicit coercion to do the equality check against the incomming value in th…
…e value binder's routine function. [#130]
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 if value isnt el.value | 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