app/assets/javascripts/luca/components/collection_view.coffee in luca-0.9.91 vs app/assets/javascripts/luca/components/collection_view.coffee in luca-0.9.899

- old
+ new

@@ -149,22 +149,18 @@ @trigger("before:refresh", models, query, options) if models.length is 0 @trigger("empty:results", query, options) - @renderModels(models, query, options) + index = 0 + for model in models + @$append @makeItem(model, index++) @trigger("after:refresh", models, query, options) @ - collectionView.privateMethods - renderModels: (models, query, options)-> - index = 0 - for model in models - @$append @makeItem(model, index++) - # Determines which attributes should be set on the item DOM element. attributesForItem: (item, model)-> _.extend {}, class: @itemClassName, "data-index": item.index, "data-model-id": item.model.get('id') # Determines the content for the item DOM element. Will use the appropriate options