Apply some small tweaks to Rivets.Binding::unbind.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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. | ... | ... |
-
Please register or sign in to post a comment