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
08563352
authored
2013-09-10 12:41:33 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make sure we take root key-only keypaths into account when setting the model.
1 parent
e60c89be
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 @
0856335
...
...
@@ -48,7 +48,7 @@ class Rivets.Binding
model
=
current
if
@
model
and
@
model
isnt
model
if
@
key
and
@
model
and
@
model
isnt
model
@
view
.
adapters
[
@
key
.
interface
].
unsubscribe
@
model
,
@
key
.
path
,
@
sync
@
view
.
adapters
[
@
key
.
interface
].
subscribe
model
,
@
key
.
path
,
@
sync
@
model
=
model
...
...
Please
register
or
sign in
to post a comment