mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fixes lint warning W018: confusing use of exclamation mark
This commit is contained in:
parent
79f82b0fae
commit
a71a87a821
3 changed files with 2 additions and 3 deletions
|
@ -348,7 +348,7 @@ var PageView = function pageView(container, id, scale,
|
|||
|
||||
var x = 0, y = 0;
|
||||
var width = 0, height = 0, widthScale, heightScale;
|
||||
var changeOrientation = !!(this.rotation % 180);
|
||||
var changeOrientation = (this.rotation % 180 === 0 ? false : true);
|
||||
var pageWidth = (changeOrientation ? this.height : this.width) /
|
||||
this.scale / CSS_UNITS;
|
||||
var pageHeight = (changeOrientation ? this.width : this.height) /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue