Browse Source

tesseract.js typo fixes

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

8
dist/tesseract.js vendored

@ -10,7 +10,7 @@ var process = module.exports = {}; @@ -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 () { @@ -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) { @@ -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);
}

Loading…
Cancel
Save