26f5b88f by Michael Richards

Apply some small tweaks to Rivets.Binding::unbind.

1 parent 82156981
...@@ -49,11 +49,11 @@ class Rivets.Binding ...@@ -49,11 +49,11 @@ class Rivets.Binding
49 el = e.target or e.srcElement 49 el = e.target or e.srcElement
50 Rivets.config.adapter.publish @model, @keypath, getInputValue el 50 Rivets.config.adapter.publish @model, @keypath, getInputValue el
51 51
52 # Unsubscribes from the model and the element 52 # Unsubscribes from the model and the element.
53 unbind: => 53 unbind: =>
54 Rivets.config.adapter.unsubscribe @model, @keypath, @set 54 Rivets.config.adapter.unsubscribe @model, @keypath, @set
55 55
56 if @type in bidirectionals 56 if @bindType is "bidirectional"
57 @el.removeEventListener 'change', @publish 57 @el.removeEventListener 'change', @publish
58 58
59 # A collection of bindings for a parent element. 59 # A collection of bindings for a parent element.
......