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 = {}; @@ -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);
}
@ -340,7 +340,7 @@ function loadImage(image, cb) { @@ -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 () { @@ -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)
});
});

Loading…
Cancel
Save