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
5b536cc6
authored
2012-07-07 23:06:03 +0200
by
Nicklas Ansman Giertz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Adhear to the code style of Rivets
1 parent
ddef0dbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
5b536cc
...
...
@@ -32,7 +32,7 @@ class Rivets.Binding
@
set
Rivets
.
config
.
adapter
.
read
@
model
,
@
keypath
if
@
type
in
bidirectionals
@
el
.
addEventListener
(
'change'
,
@
publish
)
@
el
.
addEventListener
'change'
,
@
publish
publish
:
(
e
)
=>
el
=
e
.
target
or
e
.
srcElement
...
...
@@ -43,7 +43,7 @@ class Rivets.Binding
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
set
if
@
type
in
bidirectionals
@
el
.
removeEventListener
(
'change'
,
@
publish
)
@
el
.
removeEventListener
'change'
,
@
publish
# A collection of bindings for a parent element.
class
Rivets
.
View
...
...
Please
register
or
sign in
to post a comment