Implement Rivets.View::bidirectionals scoping function.
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment