mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Use _.partial where applicable.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user