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
29a09067
authored
2012-08-08 19:45:34 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add support for using bypass binding declarations on iterated items.
1 parent
dd452d26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
src/rivets.coffee
src/rivets.coffee
View file @
29a0906
...
...
@@ -88,15 +88,16 @@ class Rivets.Binding
# Unsubscribes from the model and the element.
unbind
:
=>
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
set
unless
@
options
.
bypass
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
@
keypath
,
@
set
if
@
options
.
dependencies
?
.
length
for
keypath
in
@
options
.
dependencies
callback
=
@
dependencyCallbacks
[
keypath
]
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
keypath
,
callback
if
@
options
.
dependencies
?
.
length
for
keypath
in
@
options
.
dependencies
callback
=
@
dependencyCallbacks
[
keypath
]
Rivets
.
config
.
adapter
.
unsubscribe
@
model
,
keypath
,
callback
if
@
type
in
@
bidirectionals
@
el
.
removeEventListener
'change'
,
@
publish
if
@
type
in
@
bidirectionals
@
el
.
removeEventListener
'change'
,
@
publish
# A collection of bindings built from a set of parent elements.
class
Rivets
.
View
...
...
Please
register
or
sign in
to post a comment