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
855a7419
authored
2013-09-29 17:42:56 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
No need to store a separate reference to @observer.root.
1 parent
6b9aca0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/bindings.coffee
src/bindings.coffee
View file @
855a741
...
...
@@ -32,7 +32,6 @@ class Rivets.Binding
@
bind
true
if
@
key
@
sync
()
@
rootKey
=
@
observer
.
root
@
key
=
@
observer
.
key
@
model
=
@
observer
.
target
...
...
@@ -125,7 +124,7 @@ class Rivets.Binding
# Updates the binding's model from what is currently set on the view. Unbinds
# the old model first and then re-binds with the new model.
update
:
(
models
=
{})
=>
@
observer
.
update
()
if
models
[
@
rootKey
.
path
]
@
observer
.
update
()
if
models
[
@
observer
.
root
.
path
]
@
binder
.
update
?
.
call
@
,
models
# Rivets.ComponentBinding
...
...
Please
register
or
sign in
to post a comment