Implement sync/publish functions on Rivets.View.
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -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. | ... | ... |
-
Please register or sign in to post a comment