Always call the binder's update function if present when updating models on a view instance. [#183]
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -150,11 +150,10 @@ class Rivets.Binding | ... | @@ -150,11 +150,10 @@ 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() |
157 | @binder.update?.call @, models | 155 | |
156 | @binder.update?.call @, models | ||
158 | 157 | ||
159 | # Rivets.View | 158 | # Rivets.View |
160 | # ----------- | 159 | # ----------- | ... | ... |
-
Please register or sign in to post a comment