From 959c20f76866c17e12e0c0bd2b2a8753d618550b Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 13 Sep 2010 18:02:33 -0400 Subject: [PATCH] Add a flag to verify if a browser supports some form of XHR request. Fixes #7030. --- src/ajax.js | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.5