Update grunt-contrib-jshint to 0.3.0, ref gh-1204.

This commit is contained in:
Michał Gołębiowski 2013-03-14 00:23:36 +01:00 committed by Dave Methvin
parent 65a6648932
commit 4adde5d145
13 changed files with 38 additions and 31 deletions

View File

@ -27,7 +27,7 @@
"grunt-git-authors": "1.2.0", "grunt-git-authors": "1.2.0",
"grunt-update-submodules": "0.2.0", "grunt-update-submodules": "0.2.0",
"grunt-contrib-watch": "0.3.1", "grunt-contrib-watch": "0.3.1",
"grunt-contrib-jshint": "0.1.1rc6", "grunt-contrib-jshint": "0.3.0",
"grunt-contrib-uglify": "0.1.2", "grunt-contrib-uglify": "0.1.2",
"grunt": "0.4.1", "grunt": "0.4.1",
"gzip-js": "0.3.1", "gzip-js": "0.3.1",

View File

@ -3,15 +3,17 @@
"expr": true, "expr": true,
"newcap": false, "newcap": false,
"quotmark": "double", "quotmark": "double",
"regexdash": true,
"trailing": true, "trailing": true,
"undef": true, "undef": true,
"unused": true, "unused": true,
"latedef": false,
"eqeqeq": true,
"maxerr": 100, "maxerr": 100,
"eqnull": true, "eqnull": true,
"evil": true, "evil": true,
"sub": true, "sub": true,
"boss": true,
"browser": true, "browser": true,
"wsh": true, "wsh": true,

View File

@ -445,8 +445,8 @@ jQuery.extend({
parts = rurl.exec( s.url.toLowerCase() ); parts = rurl.exec( s.url.toLowerCase() );
s.crossDomain = !!( parts && s.crossDomain = !!( parts &&
( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
); );
} }

View File

@ -435,6 +435,7 @@ jQuery.extend({
}, },
isWindow: function( obj ) { isWindow: function( obj ) {
/* jshint eqeqeq: false */
return obj != null && obj == obj.window; return obj != null && obj == obj.window;
}, },

View File

@ -169,7 +169,9 @@ function internalRemoveData( elem, name, pvt ) {
jQuery.cleanData( [ elem ], true ); jQuery.cleanData( [ elem ], true );
// Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
/* jshint eqeqeq: false */
} else if ( jQuery.support.deleteExpando || cache != cache.window ) { } else if ( jQuery.support.deleteExpando || cache != cache.window ) {
/* jshint eqeqeq: true */
delete cache[ id ]; delete cache[ id ];
// When all else fails, null // When all else fails, null

8
src/effects.js vendored
View File

@ -175,7 +175,7 @@ function Animation( elem, properties, options ) {
} }
function propFilter( props, specialEasing ) { function propFilter( props, specialEasing ) {
var value, name, index, easing, hooks; var index, name, easing, value, hooks;
// camelCase, specialEasing and expand cssHook pass // camelCase, specialEasing and expand cssHook pass
for ( index in props ) { for ( index in props ) {
@ -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 prop, index, length, var prop, index, length,
value, dataShow, toggle, value, dataShow, toggle,
tween, hooks, oldfire, tween, hooks, oldfire,
@ -451,8 +451,8 @@ Tween.propHooks = {
} }
}; };
// Remove in 2.0 - this supports IE8's panic based approach // Support: IE <=9
// to setting things on disconnected nodes // Panic based approach to setting things on disconnected nodes
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
set: function( tween ) { set: function( tween ) {

View File

@ -413,7 +413,9 @@ 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 check non-elements (#13208) // Don't check non-elements (#13208)
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)