5b4492b5 by Michael Richards

Implement sync/publish functions on Rivets.View.

1 parent a85ebea4
...@@ -189,6 +189,12 @@ class Rivets.View ...@@ -189,6 +189,12 @@ class Rivets.View
189 unbind: => 189 unbind: =>
190 binding.unbind() for binding in @bindings 190 binding.unbind() for binding in @bindings
191 191
192 sync: =>
193 binding.sync() for binding in @bindings
194
195 publish: =>
196 binding.publish() for binding in @bidirectionals()
197
192 # Cross-browser event binding 198 # Cross-browser event binding
193 bindEvent = (el, event, fn) -> 199 bindEvent = (el, event, fn) ->
194 # Check to see if jQuery is loaded. 200 # Check to see if jQuery is loaded.
......