ab7fd75f by Michael Richards

Include the model contexts from the parent view so that they're available inside iteration bindings.

1 parent 90341ef8
...@@ -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
......