Skip to content

Commit

Permalink
Fix return value of Builder.usingServer to a self-reference
Browse files Browse the repository at this point in the history
It is documented as returning a self-reference (and this is useful
for chaining), but before this commit was instead returning
the string passed to it.

Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
  • Loading branch information
juliemr authored and andreastt committed Sep 16, 2014
1 parent 87efac8 commit 04e511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var Builder = function() {
*/
Builder.prototype.usingServer = function(url) {
this.url_ = url;
return url;
return this;
};


Expand Down

0 comments on commit 04e511d

Please sign in to comment.