]> source.dussan.org Git - jquery.git/commitdiff
Add a flag to verify if a browser supports some form of XHR request. Fixes #7030.
authorJohn Resig <jeresig@gmail.com>
Mon, 13 Sep 2010 22:02:33 +0000 (18:02 -0400)
committerJohn Resig <jeresig@gmail.com>
Mon, 13 Sep 2010 22:02:33 +0000 (18:02 -0400)
src/ajax.js

index 52a5a22cc3187a68c40728e81f53191618cc6b75..78d9b24f1565f8913c3e8ae8f6bbba9a71802a09 100644 (file)
@@ -686,6 +686,9 @@ jQuery.extend( jQuery.ajax, {
 
 });
 
+// Does this browser support XHR requests?
+jQuery.support.ajax = !!jQuery.ajaxSettings.xhr();
+
 // For backwards compatibility
 jQuery.extend( jQuery.ajax );