548a4ea6 by Michael Richards

Only take models from the parent scope if they are not already defined on the it…

…erated scope (iterating a model on the same key as one in the parent view, for example).
1 parent 50da44d7
......@@ -403,7 +403,7 @@ Rivets.binders =
if not @iterated[index]?
for key, model of @view.models
data[key] = model
data[key] ?= model
previous = if @iterated.length
@iterated[@iterated.length - 1].els[0]
......