Commit ba16ba2e authored by Michał Gołębiowski's avatar Michał Gołębiowski Committed by Dave Methvin

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

parent 6da5eb10
...@@ -7,7 +7,7 @@ module.exports = function( grunt ) { ...@@ -7,7 +7,7 @@ module.exports = function( grunt ) {
"dist/jquery.min.map", "dist/jquery.min.map",
"dist/jquery.min.js" "dist/jquery.min.js"
], ],
gzip = require("gzip-js"), gzip = require("gzip-js"),
readOptionalJSON = function( filepath ) { readOptionalJSON = function( filepath ) {
var data = {}; var data = {};
try { try {
......
...@@ -11,12 +11,11 @@ ...@@ -11,12 +11,11 @@
"maxerr": 100, "maxerr": 100,
"eqnull": true, "eqnull": true,
"evil": true,
"sub": true, "sub": true,
"boss": true, "boss": true,
"browser": true, "browser": true,
"wsh": true, "es5": true,
"globals": { "globals": {
"jQuery": true, "jQuery": true,
......
...@@ -404,8 +404,7 @@ jQuery.extend({ ...@@ -404,8 +404,7 @@ jQuery.extend({
isArray: Array.isArray, isArray: Array.isArray,
isWindow: function( obj ) { isWindow: function( obj ) {
/* jshint eqeqeq: false */ return obj != null && obj === obj.window;
return obj != null && obj == obj.window;
}, },
isNumeric: function( obj ) { isNumeric: function( obj ) {
......
...@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, { ...@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
}); });
function defaultPrefilter( elem, props, opts ) { function defaultPrefilter( elem, props, opts ) {
/*jshint validthis:true */ /* jshint validthis: true */
var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire, var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
anim = this, anim = this,
style = elem.style, style = elem.style,
......
...@@ -402,9 +402,7 @@ jQuery.event = { ...@@ -402,9 +402,7 @@ jQuery.event = {
// Avoid non-left-click bubbling in Firefox (#3861) // Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
/* jshint eqeqeq: false */ for ( ; cur !== this; cur = cur.parentNode || this ) {
for ( ; cur != this; cur = cur.parentNode || this ) {
/* jshint eqeqeq: true */
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
if ( cur.disabled !== true || event.type !== "click" ) { if ( cur.disabled !== true || event.type !== "click" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment