commit 8c91c8fc90c22f780d1bfc9b5c925f42a4a6f30d
parent 225c62df188f88ec469e51046929431e695b179a
Author: Simon Kornblith <simon@simonster.com>
Date: Fri, 22 Aug 2008 05:41:00 +0000
don't put MAX_PAGES in global namespace
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js
@@ -23,8 +23,7 @@
/**
* @fileOverview Tools for automatically retrieving a citation for the given PDF
*/
-const MAX_PAGES = 2;
-
+
/**
* Front end for recognizing PDFs
* @namespace
@@ -94,6 +93,8 @@ Zotero_RecognizePDF.Recognizer = function () {}
* @param {Function} callback The function to be executed when recognition is complete
*/
Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, pdfTitle, callback) {
+ const MAX_PAGES = 2;
+
this._pdfTitle = pdfTitle;
this._callback = callback;