git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed4051
)
Add a flag to verify if a browser supports some form of XHR request. Fixes #7030.
author
John Resig
<jeresig@gmail.com>
Mon, 13 Sep 2010 22:02:33 +0000
(18:02 -0400)
committer
John Resig
<jeresig@gmail.com>
Mon, 13 Sep 2010 22:02:33 +0000
(18:02 -0400)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
52a5a22
..
78d9b24
100644
(file)
--- 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 );