Skip to content

model.toJSON and collection.toJSON unused options argument #1222

Closed
@drinchev

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions