-
Notifications
You must be signed in to change notification settings - Fork 321
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
Conversation
…. 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)=>{ |
There was a problem hiding this comment.
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.
lgtm! |
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). 😁 |
#25 working on it! :) |
waitFor(tokens) { | ||
if (!tokens) { | ||
waitFor(sources) { | ||
if (! sources) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed one!
OK. Maybe that's the last one. :) |
I'll update the docs. Thanks 😄 |
Updated .waitFor() to allow passing store instances instead of tokens.
Docs ced88f8 |
Will also accept multiple params instead of only an array of items. Backwards compatible with Facebook's version of waitFor().
As discussed in #38