Merge pull request #167 from whiteinge/global-ref-regression
Fix regression in 89b89668 expecting global rivets reference
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment