Skip to content

Commit

Permalink
Merge pull request #33 from LarryBattle/patch-1
Browse files Browse the repository at this point in the history
Fixing function-call-constructor missing second argument
  • Loading branch information
rodneyrehm committed Jul 24, 2012
2 parents 5a71e9b + 5620886 commit 94c49fd
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 94c49fd

Please sign in to comment.