Skip to content
Permalink
Browse files

Help to squelch unnecessary Mozilla exceptions.

  • Loading branch information
jeresig committed Jul 4, 2006
1 parent 1edf3a2 commit cef11df838cef0a09990700818154ff08f04812c
Showing with 6 additions and 3 deletions.
  1. +6 −3 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.

0 comments on commit cef11df

Please sign in to comment.
You can’t perform that action at this time.