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
6921e783
authored
2012-07-04 23:20:05 -0700
by
Patrick Gibson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
The event listener receives an Event object, not the element from which the event originated.
1 parent
b1d391a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/rivets.coffee
src/rivets.coffee
View file @
6921e78
...
...
@@ -31,7 +31,8 @@ class Rivets.Binding
Rivets
.
config
.
adapter
.
subscribe
@
context
,
@
keypath
,
(
value
)
=>
@
set
value
if
@
type
in
bidirectionals
@
el
.
addEventListener
'change'
,
(
el
)
=>
@
el
.
addEventListener
'change'
,
(
e
)
=>
el
=
e
.
target
or
e
.
srcElement
Rivets
.
config
.
adapter
.
publish
@
context
,
@
keypath
,
getInputValue
el
# Parses and stores the binding data for an entire view binding.
...
...
Please
register
or
sign in
to post a comment