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

QueryResults.forEach callback parameters not as expected #39

Closed
markaedwards opened this issue Jul 18, 2014 · 4 comments
Closed

QueryResults.forEach callback parameters not as expected #39

markaedwards opened this issue Jul 18, 2014 · 4 comments

Comments

@markaedwards
Copy link

Hi
Just a little thing, just started using the latest release which has introduced QueryResults. The forEach function calls the provided callback with the parameters -
data[i], data
whereas the normally expected signature for a forEach callback would have the index as the second parameter i.e. -
data[i], i, data

Loving the whole dstore thing, nice work!

Regards

Mark

@markaedwards markaedwards changed the title QueryResult.forEach callback parameters not as expected QueryResults.forEach callback parameters not as expected Jul 18, 2014
@kriszyp
Copy link
Member

kriszyp commented Jul 28, 2014

Yes, I agree, will try to get that fixed soon.

@kriszyp
Copy link
Member

kriszyp commented Jul 28, 2014

Sorry about the comment in the wrong ticket (will still try to get this fixed soon).

@kriszyp
Copy link
Member

kriszyp commented Sep 2, 2014

Looks like this was fixed with 8d5146a

@kriszyp kriszyp closed this as completed Sep 2, 2014
@csnover
Copy link
Member

csnover commented Jan 20, 2015

The commit in the previous comment fixes only Store#forEach, not QueryResults#forEach. The latter API is still broken until 9afdf9e and there hasn’t been a new release since then with the fix.

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

No branches or pull requests

3 participants