diff options
author | Chris Antaki <ChrisAntaki@gmail.com> | 2014-06-13 11:42:38 -0700 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-07-13 00:34:40 +0400 |
commit | e5190982c40d7ac8ab9bdb2e7e4334f0e123ef66 (patch) | |
tree | 542cf42bae13e08f36b12d49debe30a38be2e46c | |
parent | df62159296e9de8b04653ba999a32f9be7bb2a73 (diff) | |
download | jquery-e5190982c40d7ac8ab9bdb2e7e4334f0e123ef66.tar.gz jquery-e5190982c40d7ac8ab9bdb2e7e4334f0e123ef66.zip |
Ajax: Remove workaround for IE6/7
Closes gh-1597
Ref #8138
-rw-r--r-- | src/ajax.js | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/ajax.js b/src/ajax.js index ea808716d..fff7cbd6b 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -10,10 +10,6 @@ define([ ], function( jQuery, rnotwhite, nonce, rquery ) { var - // Document location - ajaxLocParts, - ajaxLocation, - rhash = /#.*$/, rts = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, @@ -42,22 +38,13 @@ var transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat("*"); - -// Support: IE6 -// Exception accessing window.location.href if document.domain is set (#8138) -try { - ajaxLocation = location.href; -} catch( e ) { - // Use the href attribute of an A element - // since IE will modify it given document.location - ajaxLocation = document.createElement( "a" ); - ajaxLocation.href = ""; - ajaxLocation = ajaxLocation.href; -} + allTypes = "*/".concat( "*" ), + + // Document location + ajaxLocation = location.href, -// Segment location into parts -ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; + // Segment location into parts + ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { |