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
6b9aca0a
authored
2013-09-29 17:42:09 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't call Rivets.Binding::setModel more than once. Call ::update() on the observer instead.
1 parent
5d649eee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/bindings.coffee
src/bindings.coffee
View file @
6b9aca0
...
...
@@ -125,7 +125,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
=
{})
=>
@
setModel
()
if
models
[
@
rootKey
.
path
]
@
observer
.
update
()
if
models
[
@
rootKey
.
path
]
@
binder
.
update
?
.
call
@
,
models
# Rivets.ComponentBinding
...
...
Please
register
or
sign in
to post a comment