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
96a86af3
authored
2013-03-27 16:44:09 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Prevent the binding from calling adapter subscribe/unscribe when
@keypath is undefined.
1 parent
a664fda6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/rivets.coffee
src/rivets.coffee
View file @
96a86af
...
...
@@ -96,7 +96,7 @@ class Rivets.Binding
if
@
options
.
bypass
@
sync
()
else
Rivets
.
config
.
adapter
.
subscribe
@
model
,
@
keypath
,
@
sync
Rivets
.
config
.
adapter
.
subscribe
@
model
,
@
keypath
,
@
sync
if
@
keypath
@
sync
()
if
Rivets
.
config
.
preloadData
loopDeps
@
,
(
model
,
keypath
)
=>
Rivets
.
config
.
adapter
.
subscribe
model
,
keypath
,
@
sync
...
...
@@ -106,7 +106,7 @@ class Rivets.Binding
@
binder
.
unbind
?
.
call
@
,
@
el
unless
@
options
.
bypass
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
sync
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
sync
if
@
keypath
loopDeps
@
,
(
model
,
keypath
)
=>
Rivets
.
config
.
adapter
.
unsubscribe
model
,
keypath
,
@
sync
...
...
Please
register
or
sign in
to post a comment