I'm using Backbone.js
I have multiple lists of models on my page. Should I just make one "class" with Backbone.Collection.extend and my lists should be instances of this "class", or should I make as many classes as I have model lists on my page?
So, should I do this:
var MyCol1 = new Backbone.Collection.extend({})
var MyCol2 = new Backbone.Collection.extend({})
var listView1 = new ItemsView({ collection: new MyCol1 })
var listView2 = new ItemsView({ collection: new MyCol2 })
or rather this?
var MyCol = Backbone.Collection.extend({})
var listView1 = new ItemsView({ collection: new MyCol })
var listView2 = new ItemsView({ collection: new MyCol })
Behavior of all lists will be pretty much the same at this point but they will have different backend urls they'll be attached to.