|
|
@ -10357,20 +10357,27 @@ |
|
|
|
function createStandardXHR() { |
|
|
|
function createStandardXHR() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
return new window.XMLHttpRequest(); |
|
|
|
return new window.XMLHttpRequest(); |
|
|
|
} catch ( e ) {} |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function createActiveXHR() { |
|
|
|
function createActiveXHR() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
return new window.ActiveXObject( "Microsoft.XMLHTTP" ); |
|
|
|
return new window.ActiveXObject("Microsoft.XMLHTTP"); |
|
|
|
} catch ( e ) {} |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
|
|
|
|
|
|
|
|
jQuery.ajaxPrefilter(function (s) { |
|
|
|
|
|
|
|
if (s.crossDomain) { |
|
|
|
|
|
|
|
s.contents.script = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Install script dataType
|
|
|
|
// Install script dataType
|
|
|
|
jQuery.ajaxSetup( { |
|
|
|
jQuery.ajaxSetup({ |
|
|
|
accepts: { |
|
|
|
accepts: { |
|
|
|
script: "text/javascript, application/javascript, " + |
|
|
|
script: "text/javascript, application/javascript, " + |
|
|
|
"application/ecmascript, application/x-ecmascript" |
|
|
|
"application/ecmascript, application/x-ecmascript" |
|
|
|