From: Dave Methvin Date: Wed, 24 Oct 2012 18:33:08 +0000 (-0400) Subject: Make compatible with latest JSHint. X-Git-Tag: 1.8.3~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2af1538605eee596510766e38b79b36e129a650a;p=jquery.git Make compatible with latest JSHint. --- diff --git a/grunt.js b/grunt.js index d20df2ad2..bd0e28c0e 100644 --- a/grunt.js +++ b/grunt.js @@ -12,6 +12,8 @@ var child_process = require("child_process"); module.exports = function( grunt ) { + "use strict"; + // readOptionalJSON // by Ben Alman // https://gist.github.com/2876125 diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index b6f5d7f48..715c28fff 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -150,7 +150,7 @@ if ( jQuery.support.ajax ) { // on any attempt to access responseText (#11426) try { responses.text = xhr.responseText; - } catch( _ ) { + } catch( e ) { } // Firefox throws an exception when accessing