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 and ES6-ify PDFLinkService.navigateTo #8416

Merged
merged 1 commit into from
May 26, 2017
Merged

Refactor and ES6-ify PDFLinkService.navigateTo #8416

merged 1 commit into from
May 26, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

This patch replaces a var self = this; statement with arrow functions, and var with let in PDFLinkService.navigateTo.

Furthermore, when I started looking at this method, it quickly became clear that its code is somewhat of a mess. Since I'm one of the persons that have touched this code over the years, I figured that it'd be a good idea to try and clean it up a bit.

This patch replaces a `var self = this;` statement with arrow functions, and `var` with `let` in `PDFLinkService.navigateTo`.

Furthermore, when I started looking at this method, it quickly became clear that its code is somewhat of a mess. Since I'm one of the persons that have touched this code over the years, I figured that it'd be a good idea to try and clean it up a bit.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/30b671bcef6f2e5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/30b671bcef6f2e5/output.txt

Total script time: 2.04 mins

Published

@timvandermeij timvandermeij merged commit e801ab1 into mozilla:master May 26, 2017
@timvandermeij
Copy link
Contributor

Thank you for working on this!

@Snuffleupagus Snuffleupagus deleted the refactor-PDFLinkService-navigateTo branch May 27, 2017 11:35
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…rvice-navigateTo

Refactor and ES6-ify `PDFLinkService.navigateTo`
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.

3 participants