If a have a collection with 50 models, it seems that I have 2 main options to render a list displaying 50 models:
- Option1 : Create a specific "item view" for each model and append these views to a main "list view". This will provide a direct relationship between each "item view" and each model, will be practical and inline with Backbone philosophy
- Option2 : Have only one "list view" rendering the list with "data-attributes" helping to fetch the corresponding model when an event happens on a given list item.
I understand that option 1 leverages Backbone in a much better way however I am concerned with the number of event listeners with this option. If I have 4 events that I have to listen to per item, this will mean that I will have 4x50=200 events listeners on my list... vs. 4 (delegated) events listeners with option 2.
Given that I want to use Backbone for a cordova application, which option would be the most appropriate ?