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

(cherry picked from 4adde5d145)

Conflicts:
	src/data.js
	src/effects.js
This commit is contained in:
Michał Gołębiowski
2013-03-14 00:23:36 +01:00
committed by Dave Methvin
parent 9eb838e418
commit 1205103a72
7 changed files with 15 additions and 10 deletions

View File

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

View File

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

View File

@@ -276,14 +276,14 @@ jQuery.extend({
options = elem.options,
values = jQuery.makeArray( value ),
i = options.length;
while ( i-- ) {
option = options[ i ];
if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
optionSet = true;
}
}
// force browsers to behave consistently when non-matching value is set
if ( !optionSet ) {
elem.selectedIndex = -1;

View File

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

View File

@@ -402,7 +402,9 @@ jQuery.event = {
// Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
/* jshint eqeqeq: false */
for ( ; cur != this; cur = cur.parentNode || this ) {
/* jshint eqeqeq: true */
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
if ( cur.disabled !== true || event.type !== "click" ) {