Commit cef11df8 authored by John Resig's avatar John Resig

Help to squelch unnecessary Mozilla exceptions.

parent 1edf3a2b
...@@ -170,9 +170,12 @@ jQuery.ajax.active = 0; ...@@ -170,9 +170,12 @@ jQuery.ajax.active = 0;
// Determines if an XMLHttpRequest was successful or not // Determines if an XMLHttpRequest was successful or not
jQuery.httpSuccess = function(r) { jQuery.httpSuccess = function(r) {
return r.status ? try {
( r.status >= 200 && r.status < 300 ) || r.status == 304 : return r.status ?
location.protocol == "file:"; ( r.status >= 200 && r.status < 300 ) || r.status == 304 :
location.protocol == "file:";
} catch(e){}
return false;
}; };
// Get the data out of an XMLHttpRequest. // Get the data out of an XMLHttpRequest.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment