Skip to content

Commit

Permalink
Merging #96 - fixing getType() for undefined in IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Aug 3, 2013
2 parents 517037d + 7d9bcea commit b767143
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/URI.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function escapeRegEx(string) {
}

function getType(value) {
// required for compatibility with IE 8
if (typeof value === 'undefined') { return 'Undefined' }

return String(Object.prototype.toString.call(value)).slice(8, -1);
}

Expand Down Expand Up @@ -1833,4 +1836,4 @@ p.duplicateQueryParameters = function(v) {
};

return URI;
}));
}));

0 comments on commit b767143

Please sign in to comment.