Use the defined cross-browser compatable event unbinder for unbinding dependency callbacks.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -100,7 +100,7 @@ class Rivets.Binding | ... | @@ -100,7 +100,7 @@ class Rivets.Binding |
100 | Rivets.config.adapter.unsubscribe @model, @keypath, @sync | 100 | Rivets.config.adapter.unsubscribe @model, @keypath, @sync |
101 | 101 | ||
102 | if @isBidirectional() | 102 | if @isBidirectional() |
103 | @el.removeEventListener 'change', @publish | 103 | unbindEvent @el 'change', @publish |
104 | 104 | ||
105 | if @options.dependencies?.length | 105 | if @options.dependencies?.length |
106 | for keypath in @options.dependencies | 106 | for keypath in @options.dependencies | ... | ... |
-
Please register or sign in to post a comment