From b278d8174f307fd351ae9ce6409c1806e7426e34 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sun, 15 Dec 2013 22:02:51 -0500 Subject: [PATCH] Revert "Ajax: Fix #14424. Use ActiveX in IE9+ on local files, close gh-1434." This reverts commit 498e0e6c9bf486a0b1f16b455d65fcbc6c43867e. We can't use the ActiveX XHR because it doesn't support events. --- src/.jshintrc | 3 +-- src/ajax/xhr.js | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/.jshintrc b/src/.jshintrc index a601fa051..ba16cd5db 100644 --- a/src/.jshintrc +++ b/src/.jshintrc @@ -20,7 +20,6 @@ "globals": { "jQuery": true, "define": true, - "module": true, - "ActiveXObject": true + "module": true } } diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index 313dff5dc..55d526a41 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -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 ) {} -- 2.39.5