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

add a "trim" option #142

Open
paulovieira opened this issue Feb 3, 2017 · 1 comment
Open

add a "trim" option #142

paulovieira opened this issue Feb 3, 2017 · 1 comment

Comments

@paulovieira
Copy link

paulovieira commented Feb 3, 2017

Trimming the data from a <form> with <inputs> is a basic operation. Would it make sense for the serialize method to support it directly?

var data = Backbone.Syphon.serialize(this, { trim: true });

I can make a PR for this.

@scott-w
Copy link
Member

scott-w commented Feb 3, 2017

I think it'd be a good idea 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants