Skip to content

Commit 04e511d

Browse files
juliemrandreastt
authored andcommitted
Fix return value of Builder.usingServer to a self-reference
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 <[email protected]>
1 parent 87efac8 commit 04e511d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/node/selenium-webdriver/builder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var Builder = function() {
8383
*/
8484
Builder.prototype.usingServer = function(url) {
8585
this.url_ = url;
86-
return url;
86+
return this;
8787
};
8888

8989

0 commit comments

Comments
 (0)