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
e7a734d3
authored
2012-07-31 21:42:52 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Set up dependency observers in Rivets.Binding::bind() that recompute the value a…
…t the original keypath.
1 parent
25e88c63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
e7a734d
...
...
@@ -63,6 +63,14 @@ class Rivets.Binding
if
Rivets
.
config
.
preloadData
@
set
Rivets
.
config
.
adapter
.
read
@
model
,
@
keypath
if
@
options
.
dependencies
?
.
length
for
keypath
in
@
options
.
dependencies
Rivets
.
config
.
adapter
.
subscribe
@
model
,
keypath
,
(
stub
)
=>
@
set
if
@
options
.
bypass
@
model
[
@
keypath
]
else
Rivets
.
config
.
adapter
.
read
@
model
,
@
keypath
if
@
type
in
@
bidirectionals
bindEvent
@
el
,
'change'
,
@
publish
...
...
Please
register
or
sign in
to post a comment