Skip to content

Commit

Permalink
Test for json dataType... not JSONP
Browse files Browse the repository at this point in the history
  • Loading branch information
padolsey committed Jan 12, 2010
1 parent 065c505 commit b330ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cross-domain-ajax/jquery.xdomainajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b330ac3

Please sign in to comment.