Merge pull request #245 from notmasteryet/tree-2
Removing last const and extending shadow()'s defineProperty arguments
This commit is contained in:
commit
1328a25ddd
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…
x
Reference in New Issue
Block a user