edb23973 by Michael Richards

Add source comments for sync/publish functions.

1 parent 047720c5
...@@ -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
......