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

Converting PDFFindBar and PDFFindController to classes #5007

Merged
merged 1 commit into from
Aug 5, 2014

Conversation

timvandermeij
Copy link
Contributor

This PR:

  • converts PDFFindBar and PDFFindController to classes;
  • adjusts viewer.js, page_view.js and text_layer_builder.js accordingly;
  • removes unnecessary globals and fixes minor code style issues.

Tip: https://github.com/mozilla/pdf.js/pull/5007/files?w=1 makes review much more pleasant.

this.resumePageIdx = pageIdx;
break;
updateUIState: function PDFFindController_updateUIState(state, previous) {
if (this.findBar === null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could/should move this down and place it after if (this.integratedFind) { ... }, since it really doesn't matter if this.findBar is defined when the integrated find is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in the new commit.

@timvandermeij timvandermeij changed the title [WIP] Converting PDFFindBar and PDFFindController to classes Converting PDFFindBar and PDFFindController to classes Jun 26, 2014
@yurydelendik yurydelendik self-assigned this Jul 21, 2014
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/932b9477f0fa855/output.txt

@yurydelendik
Copy link
Contributor

Looks good to me. Thank you.

yurydelendik added a commit that referenced this pull request Aug 5, 2014
Converting PDFFindBar and PDFFindController to classes
@yurydelendik yurydelendik merged commit df8d257 into mozilla:master Aug 5, 2014
@timvandermeij timvandermeij deleted the pdfview-tlb branch August 6, 2014 18: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.

4 participants