From cdcc31e7948f0cfffe0ad36aaf5cde7a8665a52e Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 13 Sep 2010 17:29:13 -0400 Subject: [PATCH 1/2] removed comment regarding a FF4 bug that's now fixed in nightly --- js/jQuery.mobile.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index 2731834c..b64db487 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -63,7 +63,6 @@ })(); /* Some CSS capability tests from EnhanceJS -- in the vein of $.support.boxmodel -- almost certainly needed for widgets to work - * note: assuming they work in Firefox 4, these can run without domready (currently FF4 beta won't report these offset dimensions before body is present) */ //test CSS display none $.support.display = (function(){ From 4a129a8eb2f327e94c84dc6042c7705028f34c65 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 13 Sep 2010 18:04:48 -0400 Subject: [PATCH 2/2] Removing unnecessary jQuery.support.ajax that's now in jQuery core. Fixes #1. --- js/jQuery.mobile.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index b64db487..cf47640a 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -43,25 +43,6 @@ */ $.support.orientation = !!window.orientation; - //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) - //note: maybe core should be updated with this support property? - $.support.ajax = (function(){ - //factory test borrowed from quirksmode.org - var xmlhttp = false, index = -1, factory, - XMLHttpFactories = [ - function() { return new XMLHttpRequest() }, - function() { return new ActiveXObject("Msxml2.XMLHTTP") }, - function() { return new ActiveXObject("Msxml3.XMLHTTP") }, - function() { return new ActiveXObject("Microsoft.XMLHTTP") } - ]; - while ((factory = XMLHttpFactories[++index])) { - try { xmlhttp = factory(); } - catch (e) { continue; } - break; - } - return !!xmlhttp; - })(); - /* Some CSS capability tests from EnhanceJS -- in the vein of $.support.boxmodel -- almost certainly needed for widgets to work */ //test CSS display none @@ -480,4 +461,4 @@ }); -})(jQuery, this); \ No newline at end of file +})(jQuery, this);