Fixed #2174 by removing the s.dataType == "json" check for possible cross domain...
authorDavid Serduke <davidserduke@gmail.com>
Thu, 17 Jan 2008 21:38:58 +0000 (21:38 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Thu, 17 Jan 2008 21:38:58 +0000 (21:38 +0000)
commit0635df43914eec10e4b468ddb2f952f5024c644e
tree8709a47b5ded325de9b0381ed9e3b32930068686
parentdcb46c7fe572923b02b575477ab02af797ab392a
Fixed #2174 by removing the s.dataType == "json" check for possible cross domain since it causes absolute urls to use a <script> tag ajax retrieval even though absolute urls work fine for retrieving local data.  Cross-domain jsonp will still work since the $.ajax() function actually changes the s.dataType to "script" before it reaches this check in cases where it is s.dataType == "jsonp" or s.dataType == "json" and a parameter has =? in it.
src/ajax.js
test/unit/ajax.js