X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=ajax%2Fajax.js;h=f6a1d9e20ff6fbb117616d57414a98bdcf710c45;hb=b2d15586bd7cf3f620793b116b4377b8cfc38c8a;hp=af80810e36b7bdabe3ddef7759288e642171e56a;hpb=1edf3a2be937a1d0f087ac06e2f57e2c60ef25ea;p=jquery.git diff --git a/ajax/ajax.js b/ajax/ajax.js index af80810..f6a1d9e 100644 --- a/ajax/ajax.js +++ b/ajax/ajax.js @@ -170,9 +170,12 @@ jQuery.ajax.active = 0; // Determines if an XMLHttpRequest was successful or not jQuery.httpSuccess = function(r) { - return r.status ? - ( r.status >= 200 && r.status < 300 ) || r.status == 304 : - location.protocol == "file:"; + try { + return r.status ? + ( r.status >= 200 && r.status < 300 ) || r.status == 304 : + location.protocol == "file:"; + } catch(e){} + return false; }; // Get the data out of an XMLHttpRequest.