We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
data
If you have the following code:
can.fixture("/mymodels", function () { return { status: 'success', message: '' }; }); var MyModel = can.Model.extend({ findAll: "/mymodels", parseModels: function(raw) { raw.data = undefined; return raw; } }, {}); MyModel.findAll({}).then(success, error);
The error callback should be called and not the success callback.
error
success
The text was updated successfully, but these errors were encountered:
Make findAll reject on non-array data property.
ada39ce
Closes #1662.
m-mujica
Successfully merging a pull request may close this issue.
If you have the following code:
The
error
callback should be called and not thesuccess
callback.The text was updated successfully, but these errors were encountered: