don't put MAX_PAGES in global namespace
This commit is contained in:
parent
225c62df18
commit
8c91c8fc90
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue