5e8337f4 by Seth House

Fix regression in 89b89668 expecting global rivets reference

89b89668 regressed the fix for #146 in 365e32e9.
1 parent d924282f
......@@ -413,7 +413,10 @@ Rivets.binders =
options.config.preloadData = true
template = el.cloneNode true
@iterated.push rivets.bind template, data, options
view = new Rivets.View(template, data, options)
view.bind()
@iterated.push view
@marker.parentNode.insertBefore template, previous.nextSibling
else if @iterated[index].models[modelName] isnt model
@iterated[index].update data
......