Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Set collection options when passed through a constructor #366

Open
yamsellem opened this issue May 11, 2014 · 0 comments
Open

Set collection options when passed through a constructor #366

yamsellem opened this issue May 11, 2014 · 0 comments
Labels
Milestone

Comments

@yamsellem
Copy link

The docs says:

Setting collection in the constructor will automatically call setCollection, so the following are equivalent:

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?

@kpdecker kpdecker added this to the 3.1 milestone Nov 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants