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

Mimic how jquery handles array parameters with GET #51

Merged
merged 2 commits into from
Jan 15, 2017

Conversation

demersus
Copy link
Contributor

I discovered this behaving differently than jQuery while using Ember Fastboot.

This PR allows arrays to be serialized the same way $.param does: {a: [1,2,3]} becomes ?a[]=1&a[]=2&a[]=3

The old way: ?a[0]=1&a[1]=2&a[2]=3

@izelnakri
Copy link

izelnakri commented Jan 10, 2017

can we merge this PR and publish a new npm version soon? Ember-fastboot really needs this fix for the coalesceFindRequests behavior.

@alanclarke
Copy link
Contributor

Thanks for the pr! Sorry for just getting round to this

@alanclarke alanclarke merged commit c2c1fc1 into najaxjs:master Jan 15, 2017
@alanclarke
Copy link
Contributor

@demersus @izelnakri

@izelnakri
Copy link

thank you for the fix! I'm creating a fork of ember-fastboot now to investigate if this fixes our problem.

@demersus
Copy link
Contributor Author

Not a problem, Thanks for merging. 👍

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

Successfully merging this pull request may close these issues.

3 participants