Removing const and extending shadow() arguments

This commit is contained in:
notmasteryet 2011-07-10 13:48:05 -05:00
parent 6ef9e77b8a
commit f541c4cd37
2 changed files with 2 additions and 2 deletions

2
pdf.js
View File

@ -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;
}

View File

@ -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;