Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 4a129a8

Browse files
committed
Removing unnecessary jQuery.support.ajax that's now in jQuery core. Fixes #1.
1 parent cdcc31e commit 4a129a8

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

js/jQuery.mobile.js

+1-20
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,6 @@
4343
*/
4444
$.support.orientation = !!window.orientation;
4545

46-
//ajax support: to use bbq-style navigation with external pages, we will need to first test for ajax support (and fall back to normal urls)
47-
//note: maybe core should be updated with this support property?
48-
$.support.ajax = (function(){
49-
//factory test borrowed from quirksmode.org
50-
var xmlhttp = false, index = -1, factory,
51-
XMLHttpFactories = [
52-
function() { return new XMLHttpRequest() },
53-
function() { return new ActiveXObject("Msxml2.XMLHTTP") },
54-
function() { return new ActiveXObject("Msxml3.XMLHTTP") },
55-
function() { return new ActiveXObject("Microsoft.XMLHTTP") }
56-
];
57-
while ((factory = XMLHttpFactories[++index])) {
58-
try { xmlhttp = factory(); }
59-
catch (e) { continue; }
60-
break;
61-
}
62-
return !!xmlhttp;
63-
})();
64-
6546
/* Some CSS capability tests from EnhanceJS -- in the vein of $.support.boxmodel -- almost certainly needed for widgets to work
6647
*/
6748
//test CSS display none
@@ -480,4 +461,4 @@
480461

481462

482463
});
483-
})(jQuery, this);
464+
})(jQuery, this);

0 commit comments

Comments
 (0)