Skip to content

Commit

Permalink
Passed base to the URI constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryBattle committed Jul 24, 2012
1 parent 5a71e9b commit 5620886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var _use_module = typeof module !== "undefined" && module.exports,
URI = function(url, base) {
// Allow instantiation without the 'new' keyword
if (!(this instanceof URI)) {
return new URI(url);
return new URI(url, base);
}

if (url === undefined) {
Expand Down

0 comments on commit 5620886

Please sign in to comment.