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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
src/bindings.coffee
src/bindings.coffee
View file @
cae0311
...
...
@@ -48,14 +48,15 @@ class Rivets.Binding
model
=
current
if
@
key
and
@
model
and
@
model
isnt
model
@
unbind
true
@
model
=
model
@
bind
true
@
sync
()
if
@
model
if
@
model
isnt
model
@
unbind
true
if
@
key
@
model
=
model
@
bind
true
if
@
key
@
sync
()
else
@
model
=
model
# Applies all the current formatters to the supplied value and returns the
# formatted value.
formattedValue
:
(
value
)
=>
...
...
Please
register
or
sign in
to post a comment