]> source.dussan.org Git - jquery.git/commitdiff
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 e9580aa8a2d8a75a27299aa422cf40c679233935..2864c20929bd33b65c5c893fa594babd3ee71f24 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 ?