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 var with let in web/genericcom and web/genericl10n #8892

Merged
merged 1 commit into from
Sep 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions web/genericcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (typeof PDFJSDev !== 'undefined' && !PDFJSDev.test('GENERIC')) {
'GENERIC build.');
}

var GenericCom = {};
let GenericCom = {};

class GenericPreferences extends BasePreferences {
_writeToStorage(prefObj) {
Expand All @@ -36,13 +36,13 @@ class GenericPreferences extends BasePreferences {

_readFromStorage(prefObj) {
return new Promise(function(resolve) {
var readPrefs = JSON.parse(localStorage.getItem('pdfjs.preferences'));
let readPrefs = JSON.parse(localStorage.getItem('pdfjs.preferences'));
resolve(readPrefs);
});
}
}

var GenericExternalServices = Object.create(DefaultExternalServices);
let GenericExternalServices = Object.create(DefaultExternalServices);
GenericExternalServices.createDownloadManager = function() {
return new DownloadManager();
};
Expand Down
2 changes: 1 addition & 1 deletion web/genericl10n.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import '../external/webL10n/l10n';

var webL10n = document.webL10n;
let webL10n = document.webL10n;

class GenericL10n {
constructor(lang) {
Expand Down