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
22fbb3cd
authored
2012-11-20 10:13:53 -0800
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #101 from jonasi/master
Fix for issue #100
2 parents
6905577b
cf479589
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
22fbb3c
...
...
@@ -112,8 +112,16 @@ class Rivets.Binding
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
sync
if
@
options
.
dependencies
?
.
length
for
keypath
in
@
options
.
dependencies
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
keypath
,
@
sync
for
dependency
in
@
options
.
dependencies
if
/^\./
.
test
dependency
model
=
@
model
keypath
=
dependency
.
substr
1
else
dependency
=
dependency
.
split
'.'
model
=
@
view
.
models
[
dependency
.
shift
()]
keypath
=
dependency
.
join
'.'
Rivets
.
config
.
adapter
.
unsubscribe
model
,
keypath
,
@
sync
# A collection of bindings built from a set of parent elements.
class
Rivets
.
View
...
...
Please
register
or
sign in
to post a comment