Update Rivets.Binding::setObserver to work with the new KeypathObserver implementation.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -26,9 +26,9 @@ class Rivets.Binding | ... | @@ -26,9 +26,9 @@ class Rivets.Binding |
26 | @binder = {routine: @binder} if @binder instanceof Function | 26 | @binder = {routine: @binder} if @binder instanceof Function |
27 | 27 | ||
28 | setObserver: => | 28 | setObserver: => |
29 | @observer = new KeypathObserver @view, @view.models, @keypath, (target) => | 29 | @observer = new KeypathObserver @view, @view.models, @keypath, (obs) => |
30 | @unbind true if @key | 30 | @unbind true if @key |
31 | @model = target | 31 | @model = obs.target |
32 | @bind true if @key | 32 | @bind true if @key |
33 | @sync() | 33 | @sync() |
34 | 34 | ... | ... |
-
Please register or sign in to post a comment