Remove old try...catch for old FF

This commit is contained in:
Oleg 2013-11-08 22:32:35 +01:00
parent c6de821070
commit ff951314e3

View File

@ -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 ) {