Skip to content

Commit

Permalink
Merge pull request #11 from Evangenieur/e6c1355928aaa4f74d0c2cbb84e0a…
Browse files Browse the repository at this point in the history
…0a8ef5c4c94

CommonJS compatibility
  • Loading branch information
rodneyrehm committed Jan 21, 2012
2 parents 994fd6c + e6c1355 commit 6388d02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,9 @@ p.equals = function(uri) {
return true;
};

window.URI = URI;

if (typeof window !== "undefined" && window !== null) {
window.URI = URI;
} else if ((typeof module !== "undefined" && module !== null ? module.exports : void 0) != null) {
module.exports = URI;
}
})();

0 comments on commit 6388d02

Please sign in to comment.