Open yamsellem opened 10 years ago
The docs says:
Setting collection in the constructor will automatically call setCollection, so the following are equivalent:
collection
setCollection
var view = new Thorax.View({ collection: myCollection }); // identical functionality as above view.setCollection(myCollection);
But setCollection takes options as a second parameter (optional). Is there a way to give this parameter to the view when using the view constructor?
options
The docs says:
Setting
collection
in the constructor will automatically callsetCollection
, so the following are equivalent:But
setCollection
takesoptions
as a second parameter (optional). Is there a way to give this parameter to the view when using the view constructor?