]> source.dussan.org Git - jquery.git/commitdiff
Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203.
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 13 Mar 2013 23:23:36 +0000 (00:23 +0100)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 4 Apr 2013 16:27:21 +0000 (12:27 -0400)
Gruntfile.js
src/.jshintrc
src/core.js
src/effects.js
src/event.js

index 19f0f251e866a13fab76386bd79c63f3a86a20b7..2317544ade68cd39b759879cb3be169d7d690081 100644 (file)
@@ -7,7 +7,7 @@ module.exports = function( grunt ) {
                        "dist/jquery.min.map",
                        "dist/jquery.min.js"
                ],
-    gzip = require("gzip-js"),
+               gzip = require("gzip-js"),
                readOptionalJSON = function( filepath ) {
                        var data = {};
                        try {
index b5b056f2591dc3bf7008e532c85689ef30dad734..ef8723031205a67e6129847ab5de361d941aa080 100644 (file)
        "maxerr": 100,
 
        "eqnull": true,
-       "evil": true,
        "sub": true,
        "boss": true,
 
        "browser": true,
-       "wsh": true,
+       "es5": true,
 
        "globals": {
                "jQuery": true,
index 66c60774b63acfedb1e3cfbf7c31b67b9bf41fa2..67fa24c77d0cc0eddc34ffbe06dbb1eb4dbbb944 100644 (file)
@@ -404,8 +404,7 @@ jQuery.extend({
        isArray: Array.isArray,
 
        isWindow: function( obj ) {
-               /* jshint eqeqeq: false */
-               return obj != null && obj == obj.window;
+               return obj != null && obj === obj.window;
        },
 
        isNumeric: function( obj ) {
index c0f558aec36dfaf1b82548d213273140e21fae6b..96370920b88fa21bd018f9aea295e7d3d72cb4eb 100644 (file)
@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
 });
 
 function defaultPrefilter( elem, props, opts ) {
-       /*jshint validthis:true */
+       /* jshint validthis: true */
        var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
                anim = this,
                style = elem.style,
index 33c8194c37616cc5dd752b4240187ebe6ed332fc..a9620e2415839e79691b7691660fd6f44af4bbff 100644 (file)
@@ -402,9 +402,7 @@ jQuery.event = {
                // Avoid non-left-click bubbling in Firefox (#3861)
                if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
 
-                       /* jshint eqeqeq: false */
-                       for ( ; cur != this; cur = cur.parentNode || this ) {
-                               /* jshint eqeqeq: true */
+                       for ( ; cur !== this; cur = cur.parentNode || this ) {
 
                                // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
                                if ( cur.disabled !== true || event.type !== "click" ) {