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
ab7fd75f
authored
2012-08-10 02:09:53 -0700
by
Michael Richards
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Include the model contexts from the parent view so that they're available inside iteration bindings.
1 parent
90341ef8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/rivets.coffee
src/rivets.coffee
View file @
ab7fd75
...
...
@@ -223,6 +223,7 @@ iterationBinding = (name) -> (el, collection, binding) ->
for
item
in
collection
data
=
{}
data
[
n
]
=
m
for
n
,
m
of
binding
.
view
.
models
data
[
name
]
=
item
itemEl
=
el
.
cloneNode
true
previous
=
binding
.
iterated
[
binding
.
iterated
.
length
-
1
]
or
binding
.
marker
...
...
Please
register
or
sign in
to post a comment