Merge pull request #245 from notmasteryet/tree-2

Removing last const and extending shadow()'s defineProperty arguments
This commit is contained in:
Andreas Gal 2011-07-10 12:16:00 -07:00
commit 1328a25ddd
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) { 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;
} }

View File

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