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

Simplify the code that resets the value of the pageNumber element in PDFViewerApplication.setInitialView #6199

Merged
merged 1 commit into from Jul 12, 2015
Merged

Simplify the code that resets the value of the pageNumber element in PDFViewerApplication.setInitialView #6199

merged 1 commit into from Jul 12, 2015

Conversation

Snuffleupagus
Copy link
Collaborator

Another very small piece of viewer.js clean-up.

After the creation of PDFViewer, its _resetView method takes care of resetting, among other things, the page number property. Hence we don't need to set pdfViewer.currentPageNumber = 1; here any more, and the comment is no longer accurate either.

…n `PDFViewerApplication.setInitialView`

After the creation of `PDFViewer`, its `_resetView` method takes care of resetting, among other things, the page number property. Hence we don't need to set `pdfViewer.currentPageNumber = 1;` here any more, and the comment is no longer accurate either.
@Snuffleupagus
Copy link
Collaborator Author

/botio-windows preview

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/1b67e105e91afb0/output.txt

timvandermeij added a commit that referenced this pull request Jul 12, 2015
…pler-pageNumber-reset

Simplify the code that resets the value of the `pageNumber` element in `PDFViewerApplication.setInitialView`
@timvandermeij timvandermeij merged commit 9f5abd7 into mozilla:master Jul 12, 2015
@timvandermeij
Copy link
Contributor

Looks good, thank you.

@Snuffleupagus Snuffleupagus deleted the viewer-setInitialView-simpler-pageNumber-reset branch July 12, 2015 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants