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
3f76c4a6
authored
2013-05-22 21:46:46 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implement an event handler configuration option, used in the on-* binder's routine. [#161]
1 parent
c7af8fd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
3f76c4a
...
...
@@ -359,8 +359,10 @@ Rivets.binders =
"on-*"
:
function
:
true
routine
:
(
el
,
value
)
->
Rivets
.
Util
.
unbindEvent
el
,
@
args
[
0
],
@
currentListener
if
@
currentListener
@
currentListener
=
Rivets
.
Util
.
bindEvent
el
,
@
args
[
0
],
value
,
@
view
binding
=
this
Rivets
.
Util
.
unbindEvent
el
,
@
args
[
0
],
@
handler
if
@
handler
@
handler
=
(
ev
)
->
binding
.
view
.
config
.
handler
value
,
@
,
ev
,
binding
Rivets
.
Util
.
bindEvent
el
,
@
args
[
0
],
@
handler
"each-*"
:
block
:
true
...
...
Please
register
or
sign in
to post a comment