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
bdcaa056
authored
2012-07-09 02:36:08 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add some code docs for Rivets.Binding#publish.
1 parent
87f558a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
bdcaa05
...
...
@@ -34,6 +34,7 @@ class Rivets.Binding
if
@
type
in
bidirectionals
@
el
.
addEventListener
'change'
,
@
publish
# Publishes the value currently set on the input element back to the model.
publish
:
(
e
)
=>
el
=
e
.
target
or
e
.
srcElement
Rivets
.
config
.
adapter
.
publish
@
model
,
@
keypath
,
getInputValue
el
...
...
Please
register
or
sign in
to post a comment