mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Update grunt-contrib-jshint to 0.3.0, ref gh-1204.
This commit is contained in:
parent
65a6648932
commit
4adde5d145
@ -27,7 +27,7 @@
|
||||
"grunt-git-authors": "1.2.0",
|
||||
"grunt-update-submodules": "0.2.0",
|
||||
"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": "0.4.1",
|
||||
"gzip-js": "0.3.1",
|
||||
|
@ -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,
|
||||
|
@ -445,8 +445,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" ) ) )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -435,6 +435,7 @@ jQuery.extend({
|
||||
},
|
||||
|
||||
isWindow: function( obj ) {
|
||||
/* jshint eqeqeq: false */
|
||||
return obj != null && obj == obj.window;
|
||||
},
|
||||
|
||||
|
@ -169,7 +169,9 @@ function internalRemoveData( elem, name, pvt ) {
|
||||
jQuery.cleanData( [ elem ], true );
|
||||
|
||||
// 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 ) {
|
||||
/* jshint eqeqeq: true */
|
||||
delete cache[ id ];
|
||||
|
||||
// When all else fails, null
|
||||
|
8
src/effects.js
vendored
8
src/effects.js
vendored
@ -175,7 +175,7 @@ function Animation( elem, properties, options ) {
|
||||
}
|
||||
|
||||
function propFilter( props, specialEasing ) {
|
||||
var value, name, index, easing, hooks;
|
||||
var index, name, easing, value, hooks;
|
||||
|
||||
// camelCase, specialEasing and expand cssHook pass
|
||||
for ( index in props ) {
|
||||
@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
|
||||
});
|
||||
|
||||
function defaultPrefilter( elem, props, opts ) {
|
||||
/*jshint validthis:true */
|
||||
/* jshint validthis: true */
|
||||
var prop, index, length,
|
||||
value, dataShow, toggle,
|
||||
tween, hooks, oldfire,
|
||||
@ -451,8 +451,8 @@ Tween.propHooks = {
|
||||
}
|
||||
};
|
||||
|
||||
// Remove in 2.0 - this supports IE8's panic based approach
|
||||
// to setting things on disconnected nodes
|
||||
// Support: IE <=9
|
||||
// Panic based approach to setting things on disconnected nodes
|
||||
|
||||
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
|
||||
set: function( tween ) {
|
||||
|
@ -413,7 +413,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 check non-elements (#13208)
|
||||
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
|
||||
|
Loading…
Reference in New Issue
Block a user