model.toJSON and collection.toJSON unused options argument #1222
Closed
Description
This is not an issue at all, but while I was reading backbone.js I found out that there is unused options argument for those two methods :
// in Backbone.model
toJSON: function(options) {
return _.clone(this.attributes);
},
// in Backbone.collection
toJSON: function(options) {
return this.map(function(model){ return model.toJSON(options); });
},
is this intentional ?
Metadata
Assignees
Labels
No labels