Joined September 2014
·

Claudiu Garbacea

Brasov, Romania
·
·

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>
Achievements
1 Karma
0 Total ProTip Views