5b536cc6 by Nicklas Ansman Giertz

Adhear to the code style of Rivets

1 parent ddef0dbd
...@@ -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
......