Add a flag to verify if a browser supports some form of XHR request. Fixes #7030.
This commit is contained in:
parent
1ed405176b
commit
959c20f768
|
@ -686,6 +686,9 @@ jQuery.extend( jQuery.ajax, {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Does this browser support XHR requests?
|
||||||
|
jQuery.support.ajax = !!jQuery.ajaxSettings.xhr();
|
||||||
|
|
||||||
// For backwards compatibility
|
// For backwards compatibility
|
||||||
jQuery.extend( jQuery.ajax );
|
jQuery.extend( jQuery.ajax );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue