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

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

parent 65a66489
...@@ -3,15 +3,17 @@ ...@@ -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,
......
...@@ -445,8 +445,8 @@ jQuery.extend({ ...@@ -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" ) ) )
); );
} }
......
...@@ -435,6 +435,7 @@ jQuery.extend({ ...@@ -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;
}, },
......
...@@ -169,7 +169,9 @@ function internalRemoveData( elem, name, pvt ) { ...@@ -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
......
...@@ -175,7 +175,7 @@ function Animation( elem, properties, options ) { ...@@ -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, { ...@@ -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 = { ...@@ -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 ) {
......
...@@ -413,7 +413,9 @@ jQuery.event = { ...@@ -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)
......
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