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
8a3c68da
authored
2012-07-30 18:45:01 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use el.value as the default for getInputValue() to simplify things.
1 parent
ca78db6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
8a3c68d
...
...
@@ -148,8 +148,8 @@ unbindEvent = (el, event, fn) ->
# Returns the current input value for the specified element.
getInputValue
=
(
el
)
->
switch
el
.
type
when
'text'
,
'textarea'
,
'password'
,
'select-one'
,
'radio'
,
'number'
then
el
.
value
when
'checkbox'
then
el
.
checked
else
el
.
value
# Returns an event binding routine for the specified event.
eventBinding
=
(
event
)
->
(
el
,
bind
,
unbind
)
->
...
...
Please
register
or
sign in
to post a comment