Skip to content

Commit

Permalink
fix semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-rain.com committed Mar 6, 2017
1 parent 20177ad commit 8be6cc7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

var getEmbeddedCode = function(s) {
return CODE.replace(REPLACE_SEQUENCE, s);
}
};

window.Thread = (function() {

Expand Down Expand Up @@ -57,7 +57,7 @@

Deferred.prototype.progress = function(func) {
this.progressQueues.push(func);
}
};

Deferred.prototype.resolve = function(obj) {
this.isDone = true;
Expand All @@ -66,13 +66,13 @@
q(obj);
});
return this;
}
};

Deferred.prototype.notify = function(obj) {
this.progressQueues.forEach(function(q) {
q(obj);
});
}
};

Deferred.prototype.reject = function(obj) {
this.isFailed = true;
Expand All @@ -81,7 +81,7 @@
q(obj);
});
return this;
}
};

// Thread class
var Thread = function(func, depends) {
Expand Down Expand Up @@ -138,7 +138,7 @@
throw new Error("thread has been closed.");
}

var json = JSON.stringify(obj)
var json = JSON.stringify(obj);
this.worker.postMessage(json);
return this;
};
Expand All @@ -164,18 +164,17 @@
Thread.prototype.done = function(f) {
this.deferred.done(f);
return this;
}

};

Thread.prototype.fail = function(f) {
this.deferred.fail(f);
return this;
}
};

Thread.prototype.progress = function(f) {
this.deferred.progress(f);
return this;
}
};

return Thread;
})();
Expand Down

0 comments on commit 8be6cc7

Please sign in to comment.