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
cae03114
authored
2013-09-11 13:07:53 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix @setModel logic so that @sync is called even on root-only keypaths.
1 parent
428746bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
src/bindings.coffee
src/bindings.coffee
View file @
cae0311
...
...
@@ -48,10 +48,11 @@ class Rivets.Binding
model
=
current
if
@
key
and
@
model
and
@
model
isnt
model
@
unbind
true
if
@
model
if
@
model
isnt
model
@
unbind
true
if
@
key
@
model
=
model
@
bind
true
@
bind
true
if
@
key
@
sync
()
else
@
model
=
model
...
...
Please
register
or
sign in
to post a comment