Skip to content

Parameter for Arrary.indexOf should be the value of the element.#1574

Closed
betarabbit wants to merge 1 commit into
facebook:masterfrom
betarabbit:patch-1
Closed

Parameter for Arrary.indexOf should be the value of the element.#1574
betarabbit wants to merge 1 commit into
facebook:masterfrom
betarabbit:patch-1

Conversation

@betarabbit
Copy link
Copy Markdown

Parameter for Arrary.indexOf should be the value of the element, not the index of the element.

Parameter for Arrary.indexOf should be the value of the element, not the index of the element.
@sophiebits
Copy link
Copy Markdown
Collaborator

promiseIndexes is a list of indexes into _promises, so I believe this is correct as-is.

@zpao
Copy link
Copy Markdown
Member

zpao commented May 20, 2014

I think @spicyj is right but since that code isn't actually used, I'm not sure... @fisherwebdev?

@sophiebits
Copy link
Copy Markdown
Collaborator

I think #1575 makes this logic clearer.

@fisherwebdev
Copy link
Copy Markdown
Contributor

@spicyj is correct here.

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.

4 participants