Skip to content
Permalink
Browse files

Latest JSHint gets cranky with the _ vars in catch() {}

  • Loading branch information...
rwaldron committed Oct 15, 2012
1 parent 87bd3b5 commit 6aae3e1038925f8f22d6c0aeedf74f0358890be4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ajax/xhr.js
@@ -94,7 +94,7 @@ if ( jQuery.support.ajax ) {
for ( i in headers ) {
xhr.setRequestHeader( i, headers[ i ] );
}
} catch( _ ) {}
} catch( err ) {}

// Do send the request
// This may raise an exception which is actually
@@ -150,7 +150,7 @@ if ( jQuery.support.ajax ) {
// on any attempt to access responseText (#11426)
try {
responses.text = xhr.responseText;
} catch( _ ) {
} catch( err ) {
}

// Firefox throws an exception when accessing

2 comments on commit 6aae3e1

@jaubourg

This comment has been minimized.

Copy link
Member

replied Oct 16, 2012

The fact jshint has a problem with this seems very wrong to me.

@rwaldron

This comment has been minimized.

Copy link
Member Author

replied Oct 16, 2012

Eh, you and I have been down this road before :)

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