mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Enable the object-shorthand
ESLint rule in web
Please see http://eslint.org/docs/rules/object-shorthand. For the most part, these changes are of the search-and-replace kind, and the previously enabled `no-undef` rule should complement the tests in helping ensure that no stupid errors crept into to the patch.
This commit is contained in:
parent
165294a05f
commit
2a0207ccaf
17 changed files with 179 additions and 180 deletions
|
@ -75,7 +75,7 @@ function FirefoxPrintService(pdfDocument, pagesOverview, printContainer) {
|
|||
}
|
||||
|
||||
FirefoxPrintService.prototype = {
|
||||
layout: function () {
|
||||
layout() {
|
||||
var pdfDocument = this.pdfDocument;
|
||||
var printContainer = this.printContainer;
|
||||
var body = document.querySelector('body');
|
||||
|
@ -86,7 +86,7 @@ FirefoxPrintService.prototype = {
|
|||
}
|
||||
},
|
||||
|
||||
destroy: function () {
|
||||
destroy() {
|
||||
this.printContainer.textContent = '';
|
||||
}
|
||||
};
|
||||
|
@ -99,9 +99,8 @@ PDFPrintServiceFactory.instance = {
|
|||
return shadow(this, 'supportsPrinting', value);
|
||||
},
|
||||
|
||||
createPrintService: function (pdfDocument, pagesOverview, printContainer) {
|
||||
return new FirefoxPrintService(pdfDocument, pagesOverview,
|
||||
printContainer);
|
||||
createPrintService(pdfDocument, pagesOverview, printContainer) {
|
||||
return new FirefoxPrintService(pdfDocument, pagesOverview, printContainer);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue