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
cf479589
authored
2012-11-20 01:52:06 -0500
by
Isao Jonas
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
closes issue #100. make the dependency logic in Binding.unbind the same as Binding.bind
1 parent
6905577b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
cf47958
...
...
@@ -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