a85ebea4 by Michael Richards

Implement Rivets.View::bidirectionals scoping function.

1 parent 26981461
...@@ -178,6 +178,9 @@ class Rivets.View ...@@ -178,6 +178,9 @@ class Rivets.View
178 parseNode node for node in el.getElementsByTagName '*' 178 parseNode node for node in el.getElementsByTagName '*'
179 return 179 return
180 180
181 bidirectionals: =>
182 binding for binding in @bindings when binding.isBidirectional()
183
181 # Binds all of the current bindings for this view. 184 # Binds all of the current bindings for this view.
182 bind: => 185 bind: =>
183 binding.bind() for binding in @bindings 186 binding.bind() for binding in @bindings
......