File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -178,16 +178,15 @@ jQuery.extend({
178
178
// implement the XMLHttpRequest in IE7 (can't request local files),
179
179
// so we use the ActiveXObject when it is available
180
180
// This function can be overriden by calling jQuery.ajaxSetup
181
- xhr : function ( ) {
182
- if ( window . XMLHttpRequest && ( window . location . protocol !== "file:" || ! window . ActiveXObject ) ) {
181
+ xhr : window . XMLHttpRequest && ( window . location . protocol !== "file:" || ! window . ActiveXObject ) ?
182
+ function ( ) {
183
183
return new window . XMLHttpRequest ( ) ;
184
-
185
- } else {
184
+ } :
185
+ function ( ) {
186
186
try {
187
187
return new window . ActiveXObject ( "Microsoft.XMLHTTP" ) ;
188
188
} catch ( e ) { }
189
- }
190
- } ,
189
+ } ,
191
190
accepts : {
192
191
xml : "application/xml, text/xml" ,
193
192
html : "text/html" ,
You can’t perform that action at this time.
0 commit comments