63c60ac6 by Michael Richards

Always call the binder's update function if present when updating models on a view instance. [#183]

1 parent 8af3c617
...@@ -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 # -----------
......