Adhear to the code style of Rivets
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -32,7 +32,7 @@ class Rivets.Binding | ... | @@ -32,7 +32,7 @@ class Rivets.Binding |
32 | @set Rivets.config.adapter.read @model, @keypath | 32 | @set Rivets.config.adapter.read @model, @keypath |
33 | 33 | ||
34 | if @type in bidirectionals | 34 | if @type in bidirectionals |
35 | @el.addEventListener('change', @publish) | 35 | @el.addEventListener 'change', @publish |
36 | 36 | ||
37 | publish: (e) => | 37 | publish: (e) => |
38 | el = e.target or e.srcElement | 38 | el = e.target or e.srcElement |
... | @@ -43,7 +43,7 @@ class Rivets.Binding | ... | @@ -43,7 +43,7 @@ class Rivets.Binding |
43 | Rivets.config.adapter.unsubscribe @model, @keypath, @set | 43 | Rivets.config.adapter.unsubscribe @model, @keypath, @set |
44 | 44 | ||
45 | if @type in bidirectionals | 45 | if @type in bidirectionals |
46 | @el.removeEventListener('change', @publish) | 46 | @el.removeEventListener 'change', @publish |
47 | 47 | ||
48 | # A collection of bindings for a parent element. | 48 | # A collection of bindings for a parent element. |
49 | class Rivets.View | 49 | class Rivets.View | ... | ... |
-
Please register or sign in to post a comment