Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iosync does not allow to pass options via Collection.fetch() #16

Open
sebastianhoitz opened this issue Mar 9, 2012 · 1 comment
Open
Labels

Comments

@sebastianhoitz
Copy link

In Backbone you can pass options to the server via the fetch method.

This could contain relevant information like what models to fetch.

Right now, the current sync() method implementation overwrites this data with the JSON representation of a given model.
This should be refactored, so that the model data is passed along with the given fetch options.

This is how we implemented it in a quick hack:

params.data = params.data || {};
params.data.model = model.toJSON() || {};
@logicalparadox
Copy link
Contributor

Def a good idea, but I will want to implement in a way that is backwards compatible. I'll look into this.

Thanks for idea and will keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants