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

Refactor startup ready() and pageReady() calls #313

Merged
merged 1 commit into from
Aug 21, 2019
Merged

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Jul 16, 2019

Move the initial typeset call into pageReady() (since that is when the typeset occurs), and make a default version of it, so it is parallel to the ready() function. This is a better separation of duties, and makes it easier to use the ready() and pageReady() functions. It also removes the pagePromise, since it is not really necessary to have two promises, and promise already waits on pagePromise.

@dpvc dpvc requested a review from zorkow July 16, 2019 20:31
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

lgtm.

@dpvc dpvc merged commit cfa3cac into master Aug 21, 2019
@dpvc dpvc deleted the fix-pageReady branch August 21, 2019 13:14
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