mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Merge pull request #7972 from Snuffleupagus/eslint_no-unused-vars
Enable the `no-unused-vars` ESLint rule
This commit is contained in:
commit
6f0cf8c4cb
23 changed files with 37 additions and 85 deletions
|
@ -360,7 +360,6 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||
|
||||
var self = this;
|
||||
var pdfPage = this.pdfPage;
|
||||
var viewport = this.viewport;
|
||||
var div = this.div;
|
||||
// Wrap the canvas so if it has a css transform for highdpi the overflow
|
||||
// will be hidden in FF.
|
||||
|
@ -519,8 +518,6 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||
}
|
||||
};
|
||||
|
||||
var self = this;
|
||||
var pdfPage = this.pdfPage;
|
||||
var viewport = this.viewport;
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.id = 'page' + this.id;
|
||||
|
|
|
@ -85,7 +85,6 @@
|
|||
layout: function () {
|
||||
this.throwIfInactive();
|
||||
|
||||
var pdfDocument = this.pdfDocument;
|
||||
var body = document.querySelector('body');
|
||||
body.setAttribute('data-pdfjsprinting', true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue