From b330ac3fe4f347b9dee8066f52adc03f39e9e6d1 Mon Sep 17 00:00:00 2001 From: James Padolsey Date: Tue, 12 Jan 2010 17:50:22 +0000 Subject: [PATCH] Test for json dataType... not JSONP --- cross-domain-ajax/jquery.xdomainajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cross-domain-ajax/jquery.xdomainajax.js b/cross-domain-ajax/jquery.xdomainajax.js index 72a5d85..1e2fcc7 100644 --- a/cross-domain-ajax/jquery.xdomainajax.js +++ b/cross-domain-ajax/jquery.xdomainajax.js @@ -26,7 +26,7 @@ jQuery.ajax = (function(_ajax){ var url = o.url; - if ( /get/i.test(o.type) && /json/i.test(o.dataType) && isExternal(url) ) { + if ( /get/i.test(o.type) && !/json/i.test(o.dataType) && isExternal(url) ) { // Manipulate options so that JSONP-x request is made to YQL