don't put MAX_PAGES in global namespace

This commit is contained in:
Simon Kornblith 2008-08-22 05:41:00 +00:00
parent 225c62df18
commit 8c91c8fc90

View file

@ -23,8 +23,7 @@
/** /**
* @fileOverview Tools for automatically retrieving a citation for the given PDF * @fileOverview Tools for automatically retrieving a citation for the given PDF
*/ */
const MAX_PAGES = 2;
/** /**
* Front end for recognizing PDFs * Front end for recognizing PDFs
* @namespace * @namespace
@ -94,6 +93,8 @@ Zotero_RecognizePDF.Recognizer = function () {}
* @param {Function} callback The function to be executed when recognition is complete * @param {Function} callback The function to be executed when recognition is complete
*/ */
Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, pdfTitle, callback) { Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, pdfTitle, callback) {
const MAX_PAGES = 2;
this._pdfTitle = pdfTitle; this._pdfTitle = pdfTitle;
this._callback = callback; this._callback = callback;