a8487e71 by Michael Richards

Make sure that we pass along to view's local config to the iterated views, forci…

…ng config.preloadData to true.
1 parent 89b89668
...@@ -404,8 +404,16 @@ Rivets.binders = ...@@ -404,8 +404,16 @@ Rivets.binders =
404 else 404 else
405 @marker 405 @marker
406 406
407 options =
408 binders: @view.options.binders
409 formatters: @view.options.formatters
410 config: {}
411
412 options.config[k] = v for k, v of @view.options.config
413 options.config.preloadData = true
414
407 template = el.cloneNode true 415 template = el.cloneNode true
408 @iterated.push rivets.bind template, data 416 @iterated.push rivets.bind template, data, options
409 @marker.parentNode.insertBefore template, previous.nextSibling 417 @marker.parentNode.insertBefore template, previous.nextSibling
410 else if @iterated[index].models[modelName] isnt model 418 else if @iterated[index].models[modelName] isnt model
411 @iterated[index].update data 419 @iterated[index].update data
......