Include the model contexts from the parent view so that they're available inside iteration bindings.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -223,6 +223,7 @@ iterationBinding = (name) -> (el, collection, binding) -> | ... | @@ -223,6 +223,7 @@ iterationBinding = (name) -> (el, collection, binding) -> |
223 | 223 | ||
224 | for item in collection | 224 | for item in collection |
225 | data = {} | 225 | data = {} |
226 | data[n] = m for n, m of binding.view.models | ||
226 | data[name] = item | 227 | data[name] = item |
227 | itemEl = el.cloneNode true | 228 | itemEl = el.cloneNode true |
228 | previous = binding.iterated[binding.iterated.length - 1] or binding.marker | 229 | previous = binding.iterated[binding.iterated.length - 1] or binding.marker | ... | ... |
-
Please register or sign in to post a comment