mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Removing const and extending shadow() arguments
This commit is contained in:
parent
6ef9e77b8a
commit
f541c4cd37
2 changed files with 2 additions and 2 deletions
2
pdf.js
2
pdf.js
|
@ -44,7 +44,7 @@ function assertWellFormed(cond, msg) {
|
|||
}
|
||||
|
||||
function shadow(obj, prop, value) {
|
||||
Object.defineProperty(obj, prop, { value: value, enumerable: true });
|
||||
Object.defineProperty(obj, prop, { value: value, enumerable: true, configurable: true, writable: false });
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ var PDFViewer = {
|
|||
lastPagesDrawn: [],
|
||||
|
||||
visiblePages: function() {
|
||||
const pageBottomMargin = 10;
|
||||
var pageBottomMargin = 10;
|
||||
var windowTop = window.pageYOffset;
|
||||
var windowBottom = window.pageYOffset + window.innerHeight;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue