43448dbf by Michael Richards

Update Rivets.Binding::setObserver to work with the new KeypathObserver implementation.

1 parent b85fcd39
...@@ -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
......