From 07f72de63d0970a9319290309c0d9c9b4a4fdb15 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 2 May 2014 20:55:59 -0700 Subject: [PATCH] Use `_.partial` where applicable. --- test/saucelabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/saucelabs.js b/test/saucelabs.js index ba3198484..9b5af7609 100644 --- a/test/saucelabs.js +++ b/test/saucelabs.js @@ -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; };