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
11 years ago
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
master
Hide 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
...
...
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment