mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Remove old try...catch for old FF
This commit is contained in:
parent
c6de821070
commit
ff951314e3
@ -90,11 +90,6 @@ if ( xhrSupported ) {
|
|||||||
callback = function( _, isAbort ) {
|
callback = function( _, isAbort ) {
|
||||||
var status, statusText, responses;
|
var status, statusText, responses;
|
||||||
|
|
||||||
// Firefox throws exceptions when accessing properties
|
|
||||||
// of an xhr when a network error occurred
|
|
||||||
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
|
|
||||||
try {
|
|
||||||
|
|
||||||
// Was never called and is aborted or complete
|
// Was never called and is aborted or complete
|
||||||
if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
|
if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
|
||||||
// Clean up
|
// Clean up
|
||||||
@ -140,11 +135,6 @@ if ( xhrSupported ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch( firefoxAccessException ) {
|
|
||||||
if ( !isAbort ) {
|
|
||||||
complete( -1, firefoxAccessException );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Call complete if needed
|
// Call complete if needed
|
||||||
if ( responses ) {
|
if ( responses ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user