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
edb23973
authored
2012-09-03 13:50:07 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add source comments for sync/publish functions.
1 parent
047720c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
edb2397
...
...
@@ -190,9 +190,11 @@ class Rivets.View
unbind
:
=>
binding
.
unbind
()
for
binding
in
@
bindings
# Syncs up the view with the model by running the routines on all bindings.
sync
:
=>
binding
.
sync
()
for
binding
in
@
bindings
# Publishes the input values from the view back to the model (reverse sync).
publish
:
=>
binding
.
publish
()
for
binding
in
@
select
(
b
)
->
b
.
isBidirectional
()
...
...
Please
register
or
sign in
to post a comment