Skip to content

Commit ba16ba2

Browse files
mgoldmethvin
authored andcommitted
Update grunt-contrib-jshint to 0.3.0, part 2, close jquerygh-1203.
1 parent 6da5eb1 commit ba16ba2

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function( grunt ) {
77
"dist/jquery.min.map",
88
"dist/jquery.min.js"
99
],
10-
gzip = require("gzip-js"),
10+
gzip = require("gzip-js"),
1111
readOptionalJSON = function( filepath ) {
1212
var data = {};
1313
try {

src/.jshintrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
"maxerr": 100,
1212

1313
"eqnull": true,
14-
"evil": true,
1514
"sub": true,
1615
"boss": true,
1716

1817
"browser": true,
19-
"wsh": true,
18+
"es5": true,
2019

2120
"globals": {
2221
"jQuery": true,

src/core.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ jQuery.extend({
404404
isArray: Array.isArray,
405405

406406
isWindow: function( obj ) {
407-
/* jshint eqeqeq: false */
408-
return obj != null && obj == obj.window;
407+
return obj != null && obj === obj.window;
409408
},
410409

411410
isNumeric: function( obj ) {

src/effects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
242242
});
243243

244244
function defaultPrefilter( elem, props, opts ) {
245-
/*jshint validthis:true */
245+
/* jshint validthis: true */
246246
var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
247247
anim = this,
248248
style = elem.style,

src/event.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,7 @@ jQuery.event = {
402402
// Avoid non-left-click bubbling in Firefox (#3861)
403403
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
404404

405-
/* jshint eqeqeq: false */
406-
for ( ; cur != this; cur = cur.parentNode || this ) {
407-
/* jshint eqeqeq: true */
405+
for ( ; cur !== this; cur = cur.parentNode || this ) {
408406

409407
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
410408
if ( cur.disabled !== true || event.type !== "click" ) {

0 commit comments

Comments
 (0)