Add source comments for sync/publish functions.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -190,9 +190,11 @@ class Rivets.View | ... | @@ -190,9 +190,11 @@ class Rivets.View |
190 | unbind: => | 190 | unbind: => |
191 | binding.unbind() for binding in @bindings | 191 | binding.unbind() for binding in @bindings |
192 | 192 | ||
193 | # Syncs up the view with the model by running the routines on all bindings. | ||
193 | sync: => | 194 | sync: => |
194 | binding.sync() for binding in @bindings | 195 | binding.sync() for binding in @bindings |
195 | 196 | ||
197 | # Publishes the input values from the view back to the model (reverse sync). | ||
196 | publish: => | 198 | publish: => |
197 | binding.publish() for binding in @select (b) -> b.isBidirectional() | 199 | binding.publish() for binding in @select (b) -> b.isBidirectional() |
198 | 200 | ... | ... |
-
Please register or sign in to post a comment