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

Updated .waitFor() to allow passing store instances instead of tokens. #39

Merged
merged 3 commits into from
Mar 6, 2015

Conversation

mattmccray
Copy link
Contributor

Will also accept multiple params instead of only an array of items. Backwards compatible with Facebook's version of waitFor().

As discussed in #38

…. Will also accept multiple params instead of an array of items. Backwards compatible with Facebook's version of waitFor().
sources = Array.prototype.slice.call( arguments)
}

let tokens = sources.map(( source)=>{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few whitespace nits:

removing leading whitespace from open paren, and add some whitespace between arrow and paren/brace:

let tokens = sources.map((source) => {

same for the slice call above.

@goatslacker
Copy link
Owner

lgtm!

@mattmccray
Copy link
Contributor Author

I think this addresses the whitespace niggles.

You might consider putting a style guide of some sort in the repo (although it's possible I just missed it). 😁

@goatslacker
Copy link
Owner

#25 working on it! :)

waitFor(tokens) {
if (!tokens) {
waitFor(sources) {
if (! sources) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed one!

@mattmccray
Copy link
Contributor Author

OK. Maybe that's the last one. :)

@goatslacker
Copy link
Owner

I'll update the docs. Thanks 😄

goatslacker added a commit that referenced this pull request Mar 6, 2015
Updated .waitFor() to allow passing store instances instead of tokens.
@goatslacker goatslacker merged commit 05eb618 into goatslacker:master Mar 6, 2015
@goatslacker
Copy link
Owner

Docs ced88f8

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.

2 participants