From 6aae3e1038925f8f22d6c0aeedf74f0358890be4 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 15 Oct 2012 18:05:36 -0400 Subject: [PATCH] Latest JSHint gets cranky with the _ vars in catch() {} --- src/ajax/xhr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index b6f5d7f48..a24feaf1a 100644 --- a/src/ajax/xhr.js +++ b/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.39.5