bbc15037 by Michael Richards

Add an unbind function to the on-* binder so that it's event handler is removed when unbinding.

1 parent 6b45002c
......@@ -358,6 +358,10 @@ Rivets.binders =
"on-*":
function: true
unbind: (el) ->
Rivets.Util.unbindEvent el, @args[0], @handler if @handler
routine: (el, value) ->
binding = this
Rivets.Util.unbindEvent el, @args[0], @handler if @handler
......