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
a5a6ad5e
authored
11 years ago
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implement an eventHandler factory on Rivets.Binding.
1 parent
a5e3414f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
a5a6ad5
...
...
@@ -57,6 +57,11 @@ class Rivets.Binding
value
# Returns an event handler for the binding around the supplied function.
eventHandler
:
(
fn
)
=>
handler
=
(
binding
=
@
).
view
.
config
.
handler
(
ev
)
->
handler
.
call
fn
,
@
,
ev
,
binding
# Sets the value for the binding. This Basically just runs the binding routine
# with the suplied value formatted.
set
:
(
value
)
=>
...
...
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment