Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
rivets
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bbc15037
authored
2013-05-22 21:57:33 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add an unbind function to the on-* binder so that it's event handler is removed when unbinding.
1 parent
6b45002c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
bbc1503
...
...
@@ -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
...
...
Please
register
or
sign in
to post a comment