94ecb4ea by Michael Richards

No longer need Rivets.Binding::setObserver.

1 parent e7c2fedb
...@@ -25,10 +25,6 @@ class Rivets.Binding ...@@ -25,10 +25,6 @@ class Rivets.Binding
25 @binder or= @view.binders['*'] 25 @binder or= @view.binders['*']
26 @binder = {routine: @binder} if @binder instanceof Function 26 @binder = {routine: @binder} if @binder instanceof Function
27 27
28 # Sets a keypath observer that will notify this binding when any intermediary
29 # keys are changed.
30 setObserver: =>
31
32 # Applies all the current formatters to the supplied value and returns the 28 # Applies all the current formatters to the supplied value and returns the
33 # formatted value. 29 # formatted value.
34 formattedValue: (value) => 30 formattedValue: (value) =>
...@@ -165,7 +161,6 @@ class Rivets.TextBinding extends Rivets.Binding ...@@ -165,7 +161,6 @@ class Rivets.TextBinding extends Rivets.Binding
165 constructor: (@view, @el, @type, @keypath, @options = {}) -> 161 constructor: (@view, @el, @type, @keypath, @options = {}) ->
166 @formatters = @options.formatters || [] 162 @formatters = @options.formatters || []
167 @dependencies = [] 163 @dependencies = []
168 @setObserver()
169 164
170 # A standard routine binder used for text node bindings. 165 # A standard routine binder used for text node bindings.
171 binder: 166 binder:
......