Merge pull request #44 from hemanth/patch-1

Using log for now, fixes #40
master
Kevin Kwok 8 years ago committed by GitHub
commit 3645946a5d
  1. 4
      src/common/job.js

@ -52,7 +52,7 @@ module.exports = class TesseractJob {
let runFinallyCbs = false;
if(packet.status === 'resolve'){
if(this._resolve.length === 0) console.debug(data);
if(this._resolve.length === 0) console.log(data);
this._resolve.forEach(fn => {
var ret = fn(data);
if(ret && typeof ret.then == 'function'){
@ -78,4 +78,4 @@ module.exports = class TesseractJob {
this._finally.forEach(fn => fn(data));
}
}
}
}

Loading…
Cancel
Save