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) {
|
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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ var PDFViewer = {
|
||||||
lastPagesDrawn: [],
|
lastPagesDrawn: [],
|
||||||
|
|
||||||
visiblePages: function() {
|
visiblePages: function() {
|
||||||
const pageBottomMargin = 10;
|
var pageBottomMargin = 10;
|
||||||
var windowTop = window.pageYOffset;
|
var windowTop = window.pageYOffset;
|
||||||
var windowBottom = window.pageYOffset + window.innerHeight;
|
var windowBottom = window.pageYOffset + window.innerHeight;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue