846ef080 by Michael Richards

Merge pull request #167 from whiteinge/global-ref-regression

Fix regression in 89b89668 expecting global rivets reference
2 parents d924282f 5e8337f4
...@@ -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
......