Remove an unnecessary proxy call
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -26,7 +26,7 @@ class Rivets.Binding | ... | @@ -26,7 +26,7 @@ class Rivets.Binding |
26 | # routines will also listen for changes on the element to propagate them back | 26 | # routines will also listen for changes on the element to propagate them back |
27 | # to the model. | 27 | # to the model. |
28 | bind: => | 28 | bind: => |
29 | Rivets.config.adapter.subscribe @model, @keypath, (value) => @set value | 29 | Rivets.config.adapter.subscribe @model, @keypath, @set |
30 | 30 | ||
31 | if Rivets.config.preloadData | 31 | if Rivets.config.preloadData |
32 | @set Rivets.config.adapter.read @model, @keypath | 32 | @set Rivets.config.adapter.read @model, @keypath |
... | @@ -144,4 +144,4 @@ rivets = | ... | @@ -144,4 +144,4 @@ rivets = |
144 | if module? | 144 | if module? |
145 | module.exports = rivets | 145 | module.exports = rivets |
146 | else | 146 | else |
147 | @rivets = rivets | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
147 | @rivets = rivets | ... | ... |
-
Please register or sign in to post a comment