From: John Resig Date: Mon, 13 Sep 2010 22:02:33 +0000 (-0400) Subject: Add a flag to verify if a browser supports some form of XHR request. Fixes #7030. X-Git-Tag: 1.4.3rc1~119 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=959c20f76866c17e12e0c0bd2b2a8753d618550b;p=jquery.git Add a flag to verify if a browser supports some form of XHR request. Fixes #7030. --- diff --git a/src/ajax.js b/src/ajax.js index 52a5a22cc..78d9b24f1 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 );