From 2af1538605eee596510766e38b79b36e129a650a Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Wed, 24 Oct 2012 14:33:08 -0400 Subject: [PATCH] Make compatible with latest JSHint. --- grunt.js | 2 ++ src/ajax/xhr.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5