mirror of
https://github.com/jquery/jquery.git
synced 2026-02-10 20:05:19 -05:00
Help to squelch unnecessary Mozilla exceptions.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user