Add a flag to verify if a browser supports some form of XHR request. Fixes #7030.

This commit is contained in:
John Resig 2010-09-13 18:02:33 -04:00
parent 1ed405176b
commit 959c20f768

View 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 );