Merge pull request #6182 from Snuffleupagus/remove-PDFViewerApplication-get-currentScaleValue

Remove the `currentScaleValue` getter from `PDFViewerApplication` (issue 6158)
This commit is contained in:
Tim van der Meij 2015-07-09 15:48:08 +02:00
commit ccfafea20b

View File

@ -312,10 +312,6 @@ var PDFViewerApplication = {
this.setScale(newScale, true); this.setScale(newScale, true);
}, },
get currentScaleValue() {
return this.pdfViewer.currentScaleValue;
},
get pagesCount() { get pagesCount() {
return this.pdfDocument.numPages; return this.pdfDocument.numPages;
}, },
@ -1964,7 +1960,7 @@ window.addEventListener('keydown', function keydown(evt) {
case 33: // pg up case 33: // pg up
case 8: // backspace case 8: // backspace
if (!isViewerInPresentationMode && if (!isViewerInPresentationMode &&
PDFViewerApplication.currentScaleValue !== 'page-fit') { pdfViewer.currentScaleValue !== 'page-fit') {
break; break;
} }
/* in presentation mode */ /* in presentation mode */
@ -1995,7 +1991,7 @@ window.addEventListener('keydown', function keydown(evt) {
case 34: // pg down case 34: // pg down
case 32: // spacebar case 32: // spacebar
if (!isViewerInPresentationMode && if (!isViewerInPresentationMode &&
PDFViewerApplication.currentScaleValue !== 'page-fit') { pdfViewer.currentScaleValue !== 'page-fit') {
break; break;
} }
/* falls through */ /* falls through */
@ -2040,7 +2036,7 @@ window.addEventListener('keydown', function keydown(evt) {
switch (evt.keyCode) { switch (evt.keyCode) {
case 32: // spacebar case 32: // spacebar
if (!isViewerInPresentationMode && if (!isViewerInPresentationMode &&
PDFViewerApplication.currentScaleValue !== 'page-fit') { pdfViewer.currentScaleValue !== 'page-fit') {
break; break;
} }
PDFViewerApplication.page--; PDFViewerApplication.page--;