Use _.partial where applicable.

This commit is contained in:
John-David Dalton
2014-05-02 20:55:59 -07:00
parent f17f62b532
commit 07f72de63d

View File

@@ -509,7 +509,7 @@ Job.prototype.restart = function(callback) {
logInline();
console.log(label + ' ' + description + ' restart #%d of %d', ++this.attempts, this.retries);
this.stop(_.bind(this.start, this, callback));
this.stop(_.partial(this.start, callback));
return this;
};
@@ -661,7 +661,7 @@ Tunnel.prototype.restart = function(callback) {
logInline();
console.log('Tunnel ' + this.id + ': restart #%d of %d', ++this.attempts, this.retries);
this.stop(_.bind(this.start, this, callback));
this.stop(_.partial(this.start, callback));
return this;
};