Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
adcc0a15
authored
2013-04-03 18:10:43 +1100
by
David HAN SZE CHUEN
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
- force string comparison between the input's value (which is always a string) a…
…nd the data model's value
1 parent
468048c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
adcc0a1
...
...
@@ -274,7 +274,7 @@ Rivets.binders =
unbindEvent
el
,
'change'
,
@
currentListener
routine
:
(
el
,
value
)
->
if
el
.
type
is
'radio'
el
.
checked
=
el
.
value
is
value
el
.
checked
=
el
.
value
?
.
toString
()
is
value
?
.
toString
()
else
el
.
checked
=
!!
value
...
...
@@ -286,7 +286,7 @@ Rivets.binders =
unbindEvent
el
,
'change'
,
@
currentListener
routine
:
(
el
,
value
)
->
if
el
.
type
is
'radio'
el
.
checked
=
el
.
value
isnt
value
el
.
checked
=
el
.
value
?
.
toString
()
isnt
value
?
.
toString
()
else
el
.
checked
=
!
value
...
...
Please
register
or
sign in
to post a comment