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

Fix: startAt should disable document preload #714

Merged
merged 3 commits into from
Mar 13, 2018

Conversation

DanDeMicco
Copy link
Contributor

Fixes an issue where document preload was being shown when startAt was set

@boxcla
Copy link

boxcla commented Mar 12, 2018

Verified that @DanDeMicco has signed the CLA. Thanks for the pull request!

if (
!this.preloader ||
isWatermarked ||
((this.startPageNum && this.startPageNum !== 1) || this.getCachedPage() !== 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I forget, are we always initializing this? Or could the normal case (where nothing is passed in and nothing is cached, be undefined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The value could be undefined if nothing is passed in

@DanDeMicco DanDeMicco merged commit 8c38180 into box:master Mar 13, 2018
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.

3 participants