From 8c91c8fc90c22f780d1bfc9b5c925f42a4a6f30d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 22 Aug 2008 05:41:00 +0000 Subject: [PATCH] don't put MAX_PAGES in global namespace --- chrome/content/zotero/recognizePDF.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js index fd5eb4292..7e25e5638 100644 --- 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;