From 8a847c053a653d3914c4eea13f921fbf9711aafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Bud=C3=A1csik?= Date: Fri, 4 Nov 2016 08:28:03 +0100 Subject: [PATCH] tesseract.js typo fixes --- dist/tesseract.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/tesseract.js b/dist/tesseract.js index 8fcf1d9..68cd974 100644 --- a/dist/tesseract.js +++ b/dist/tesseract.js @@ -10,7 +10,7 @@ var process = module.exports = {}; var cachedSetTimeout; var cachedClearTimeout; -function defaultSetTimout() { +function defaultSetTimeout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { @@ -21,10 +21,10 @@ function defaultClearTimeout () { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { - cachedSetTimeout = defaultSetTimout; + cachedSetTimeout = defaultSetTimeout; } } catch (e) { - cachedSetTimeout = defaultSetTimout; + cachedSetTimeout = defaultSetTimeout; } try { if (typeof clearTimeout === 'function') { @@ -42,7 +42,7 @@ function runTimeout(fun) { return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + if ((cachedSetTimeout === defaultSetTimeout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } @@ -340,7 +340,7 @@ function loadImage(image, cb) { // to be sent from a webworker to the main app // or through Node's IPC), but we want // a (circular) DOM-like interface for walking -// through the data. +// through the data. module.exports = function circularize(page) { page.paragraphs = []; @@ -617,4 +617,4 @@ var TesseractWorker = function () { module.exports = create(); },{"../package.json":2,"./common/circularize.js":4,"./common/job":5,"./node/index.js":3}]},{},[6])(6) -}); \ No newline at end of file +});