Always call the binder's update function if present when updating models on a view instance. [#183]
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -150,10 +150,9 @@ class Rivets.Binding | ... | @@ -150,10 +150,9 @@ class Rivets.Binding |
150 | else | 150 | else |
151 | @view.config.adapter.subscribe @model, @keypath, @sync | 151 | @view.config.adapter.subscribe @model, @keypath, @sync |
152 | @sync() if @view.config.preloadData | 152 | @sync() if @view.config.preloadData |
153 | |||
154 | @binder.update?.call @, models | ||
155 | else | 153 | else |
156 | @sync() | 154 | @sync() |
155 | |||
157 | @binder.update?.call @, models | 156 | @binder.update?.call @, models |
158 | 157 | ||
159 | # Rivets.View | 158 | # Rivets.View | ... | ... |
-
Please register or sign in to post a comment