]> source.dussan.org Git - jquery.git/commitdiff
Latest JSHint gets cranky with the _ vars in catch() {}
authorRick Waldron <waldron.rick@gmail.com>
Mon, 15 Oct 2012 22:05:36 +0000 (18:05 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Mon, 15 Oct 2012 22:05:36 +0000 (18:05 -0400)
src/ajax/xhr.js

index b6f5d7f48455843afe5cc5784aa73a89c3b38786..a24feaf1a006cd47b80a23a4cf66cfc8d5efcce7 100644 (file)
@@ -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