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

Replace unnecessary var self = this statements with arrow functions in web/app.js #8393

Merged
merged 1 commit into from
May 9, 2017
Merged

Replace unnecessary var self = this statements with arrow functions in web/app.js #8393

merged 1 commit into from
May 9, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 9, 2017

Also replaces var with let in the functions/methods that are touched in the patch. Please note that this should be completely safe, for two separate reasons, since trying to access let in a scope where it's not defined is first of all a runtime error and second of all an ESLint error (thanks to the no-undef rule).

Edit: Slightly more manageable diff with https://github.com/mozilla/pdf.js/pull/8393/files?w=1.

… in `web/app.js`

Also replaces `var` with `let` in the functions/methods that are touched in the patch. Please note that this should be completely safe, for two separate reasons, since trying to access `let` in a scope where it's not defined is first of all a runtime error and second of all an ESLint error (thanks to the `no-undef` rule).
@yurydelendik
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2017

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/dbad99713937ae8/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2017

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/dbad99713937ae8/output.txt

Total script time: 2.01 mins

Published

@yurydelendik yurydelendik merged commit 3923c4a into mozilla:master May 9, 2017
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the web-app-rm-self branch May 9, 2017 13:20
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Replace unnecessary `var self = this` statements with arrow functions in `web/app.js`
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