]> source.dussan.org Git - jquery.git/commitdiff
Make compatible with latest JSHint.
authorDave Methvin <dave.methvin@gmail.com>
Wed, 24 Oct 2012 18:33:08 +0000 (14:33 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 24 Oct 2012 18:33:08 +0000 (14:33 -0400)
grunt.js
src/ajax/xhr.js

index d20df2ad28975d3970c5bcfc5b9007cb96b58ec3..bd0e28c0e55846cceb08f7cd342c11bd44d57e60 100644 (file)
--- 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
index b6f5d7f48455843afe5cc5784aa73a89c3b38786..715c28fffc0a0848273a20a80db295f2b45463f3 100644 (file)
@@ -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