Skip to content
Permalink
Browse files

Revert "Ajax: Fix #14424. Use ActiveX in IE9+ on local files, close g…

…h-1434."

This reverts commit 498e0e6.

We can't use the ActiveX XHR because it doesn't support events.
  • Loading branch information
dmethvin committed Dec 16, 2013
1 parent f9ad13c commit b278d8174f307fd351ae9ce6409c1806e7426e34
Showing with 1 addition and 10 deletions.
  1. +1 −2 src/.jshintrc
  2. +0 −8 src/ajax/xhr.js
@@ -20,7 +20,6 @@
"globals": {
"jQuery": true,
"define": true,
"module": true,
"ActiveXObject": true
"module": true
}
}
@@ -5,14 +5,6 @@ define([
], function( jQuery, support ) {

jQuery.ajaxSettings.xhr = function() {
// Support: IE9+
// IE can't get local files with standard XHR, only ActiveX
if ( this.isLocal ) {
try {
return new ActiveXObject( "Microsoft.XMLHTTP" );
} catch( e ) {}
}

try {
return new XMLHttpRequest();
} catch( e ) {}

0 comments on commit b278d81

Please sign in to comment.
You can’t perform that action at this time.