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

toJSON function's parameter misleading #1410

Closed
aoboturov opened this issue Jun 14, 2012 · 1 comment
Closed

toJSON function's parameter misleading #1410

aoboturov opened this issue Jun 14, 2012 · 1 comment
Labels

Comments

@aoboturov
Copy link

Lines 224-226:

toJSON: function(options) {
  return _.clone(this.attributes);
},

options parameter never used - why is it there?

@braddunbar
Copy link
Collaborator

Morning @aoboturov! Thanks for pointing this out. It's actually intentional and is meant to remind you that collection.toJSON(options) passes along the options argument to each of its models by default. See #1222 and #1098 for details.

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