Skip to content

Commit

Permalink
Ajax: Remove workaround for IE6/7
Browse files Browse the repository at this point in the history
Closes gh-1597
Ref #8138
  • Loading branch information
ChrisAntaki authored and markelog committed Jul 12, 2014
1 parent df62159 commit e519098
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ define([
], function( jQuery, rnotwhite, nonce, rquery ) {

var
// Document location
ajaxLocParts,
ajaxLocation,

rhash = /#.*$/,
rts = /([?&])_=[^&]*/,
rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit e519098

Please sign in to comment.