Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203.

  • Loading branch information...
commit ba16ba2efcb0a7703d1332044de87bf12700a66e 1 parent 6da5eb1
Michał Gołębiowski authored March 14, 2013 dmethvin committed April 04, 2013
2  Gruntfile.js
@@ -7,7 +7,7 @@ module.exports = function( grunt ) {
7 7
 			"dist/jquery.min.map",
8 8
 			"dist/jquery.min.js"
9 9
 		],
10  
-    gzip = require("gzip-js"),
  10
+		gzip = require("gzip-js"),
11 11
 		readOptionalJSON = function( filepath ) {
12 12
 			var data = {};
13 13
 			try {
3  src/.jshintrc
@@ -11,12 +11,11 @@
11 11
 	"maxerr": 100,
12 12
 
13 13
 	"eqnull": true,
14  
-	"evil": true,
15 14
 	"sub": true,
16 15
 	"boss": true,
17 16
 
18 17
 	"browser": true,
19  
-	"wsh": true,
  18
+	"es5": true,
20 19
 
21 20
 	"globals": {
22 21
 		"jQuery": true,
3  src/core.js
@@ -404,8 +404,7 @@ jQuery.extend({
404 404
 	isArray: Array.isArray,
405 405
 
406 406
 	isWindow: function( obj ) {
407  
-		/* jshint eqeqeq: false */
408  
-		return obj != null && obj == obj.window;
  407
+		return obj != null && obj === obj.window;
409 408
 	},
410 409
 
411 410
 	isNumeric: function( obj ) {
2  src/effects.js
@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
242 242
 });
243 243
 
244 244
 function defaultPrefilter( elem, props, opts ) {
245  
-	/*jshint validthis:true */
  245
+	/* jshint validthis: true */
246 246
 	var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
247 247
 		anim = this,
248 248
 		style = elem.style,
4  src/event.js
@@ -402,9 +402,7 @@ jQuery.event = {
402 402
 		// Avoid non-left-click bubbling in Firefox (#3861)
403 403
 		if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
404 404
 
405  
-			/* jshint eqeqeq: false */
406  
-			for ( ; cur != this; cur = cur.parentNode || this ) {
407  
-				/* jshint eqeqeq: true */
  405
+			for ( ; cur !== this; cur = cur.parentNode || this ) {
408 406
 
409 407
 				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
410 408
 				if ( cur.disabled !== true || event.type !== "click" ) {

0 notes on commit ba16ba2

Please sign in to comment.
Something went wrong with that request. Please try again.