Browse Source

tesseract.js typo fixes

pull/79/head
Attila Budácsik 8 years ago committed by GitHub
parent
commit
8a847c053a
  1. 12
      dist/tesseract.js

12
dist/tesseract.js vendored

@ -10,7 +10,7 @@ var process = module.exports = {};
var cachedSetTimeout; var cachedSetTimeout;
var cachedClearTimeout; var cachedClearTimeout;
function defaultSetTimout() { function defaultSetTimeout() {
throw new Error('setTimeout has not been defined'); throw new Error('setTimeout has not been defined');
} }
function defaultClearTimeout () { function defaultClearTimeout () {
@ -21,10 +21,10 @@ function defaultClearTimeout () {
if (typeof setTimeout === 'function') { if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout; cachedSetTimeout = setTimeout;
} else { } else {
cachedSetTimeout = defaultSetTimout; cachedSetTimeout = defaultSetTimeout;
} }
} catch (e) { } catch (e) {
cachedSetTimeout = defaultSetTimout; cachedSetTimeout = defaultSetTimeout;
} }
try { try {
if (typeof clearTimeout === 'function') { if (typeof clearTimeout === 'function') {
@ -42,7 +42,7 @@ function runTimeout(fun) {
return setTimeout(fun, 0); return setTimeout(fun, 0);
} }
// if setTimeout wasn't available but was latter defined // if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { if ((cachedSetTimeout === defaultSetTimeout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout; cachedSetTimeout = setTimeout;
return setTimeout(fun, 0); return setTimeout(fun, 0);
} }
@ -340,7 +340,7 @@ function loadImage(image, cb) {
// to be sent from a webworker to the main app // to be sent from a webworker to the main app
// or through Node's IPC), but we want // or through Node's IPC), but we want
// a (circular) DOM-like interface for walking // a (circular) DOM-like interface for walking
// through the data. // through the data.
module.exports = function circularize(page) { module.exports = function circularize(page) {
page.paragraphs = []; page.paragraphs = [];
@ -617,4 +617,4 @@ var TesseractWorker = function () {
module.exports = create(); module.exports = create();
},{"../package.json":2,"./common/circularize.js":4,"./common/job":5,"./node/index.js":3}]},{},[6])(6) },{"../package.json":2,"./common/circularize.js":4,"./common/job":5,"./node/index.js":3}]},{},[6])(6)
}); });

Loading…
Cancel
Save