Thanks. It works for initializing the collection as well:
var Picker = Backbone.Collection.extend({ model: Pin, initialize: function(){ _.each(colors, function(element, index){ this.add({color: element, position: index}); }, this); console.log(this); } }); </pre>
Thanks. It works for initializing the collection as well: