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 = ...@@ -413,7 +413,10 @@ Rivets.binders =
413 options.config.preloadData = true 413 options.config.preloadData = true
414 414
415 template = el.cloneNode true 415 template = el.cloneNode true
416 @iterated.push rivets.bind template, data, options 416 view = new Rivets.View(template, data, options)
417 view.bind()
418 @iterated.push view
419
417 @marker.parentNode.insertBefore template, previous.nextSibling 420 @marker.parentNode.insertBefore template, previous.nextSibling
418 else if @iterated[index].models[modelName] isnt model 421 else if @iterated[index].models[modelName] isnt model
419 @iterated[index].update data 422 @iterated[index].update data
......