Skip to content

Commit

Permalink
Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol authored and dmethvin committed Apr 4, 2013
1 parent 6da5eb1 commit ba16ba2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -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 {
Expand Down
3 changes: 1 addition & 2 deletions src/.jshintrc
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions src/core.js
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/effects.js
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions src/event.js
Expand Up @@ -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" ) {
Expand Down

0 comments on commit ba16ba2

Please sign in to comment.