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
When using an ES6 class, idAttribute should be returned from a getter, rather than being set in the preinitialize function.
class Meal extends Backbone.Model( get idAttribute() { return "_id"; } );
Otherwise the following will not work.
let model = MealCollection.get(someId);
Due to the use of prototype in the collection function
// Define how to uniquely identify models in the collection. modelId: function(attrs) { return attrs[this.model.prototype.idAttribute || 'id']; };
The text was updated successfully, but these errors were encountered:
Closely related to #3560 and #4245.
Sorry, something went wrong.
No branches or pull requests
When using an ES6 class, idAttribute should be returned from a getter, rather than being set in the preinitialize function.
Otherwise the following will not work.
Due to the use of prototype in the collection function
The text was updated successfully, but these errors were encountered: