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
e0d736ad
authored
11 years ago
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add an unbind callback to the each-* binder that unbinds all iterated views. [Closes #153]
1 parent
d9c1dbac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
e0d736a
...
...
@@ -345,6 +345,8 @@ Rivets.binders =
block
:
true
bind
:
(
el
,
collection
)
->
el
.
removeAttribute
[
'data'
,
Rivets
.
config
.
prefix
,
@
type
].
join
(
'-'
).
replace
'--'
,
'-'
unbind
:
(
el
,
collection
)
->
view
.
unbind
()
for
view
in
@
iterated
if
@
iterated
?
routine
:
(
el
,
collection
)
->
if
@
iterated
?
for
view
in
@
iterated
...
...
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment