Added support for the native AJAX object in IE 7.
authorJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 06:30:44 +0000 (06:30 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 06:30:44 +0000 (06:30 +0000)
src/ajax/ajax.js

index e9580aa..2864c20 100644 (file)
@@ -58,7 +58,7 @@ jQuery.fn.load = function( url, params, callback, ifModified ) {
 };
 
 // If IE is used, create a wrapper for the XMLHttpRequest object
-if ( jQuery.browser.msie )
+if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
        XMLHttpRequest = function(){
                return new ActiveXObject(
                        navigator.userAgent.indexOf("MSIE 5") >= 0 ?