mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 20:14:56 -05:00
Update grunt-contrib-jshint to 0.3.0, part 2, close gh-1203.
This commit is contained in:
committed by
Dave Methvin
parent
6da5eb1033
commit
ba16ba2efc
@@ -11,12 +11,11 @@
|
||||
"maxerr": 100,
|
||||
|
||||
"eqnull": true,
|
||||
"evil": true,
|
||||
"sub": true,
|
||||
"boss": true,
|
||||
|
||||
"browser": true,
|
||||
"wsh": true,
|
||||
"es5": true,
|
||||
|
||||
"globals": {
|
||||
"jQuery": true,
|
||||
|
||||
@@ -404,8 +404,7 @@ jQuery.extend({
|
||||
isArray: Array.isArray,
|
||||
|
||||
isWindow: function( obj ) {
|
||||
/* jshint eqeqeq: false */
|
||||
return obj != null && obj == obj.window;
|
||||
return obj != null && obj === obj.window;
|
||||
},
|
||||
|
||||
isNumeric: function( obj ) {
|
||||
|
||||
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -242,7 +242,7 @@ jQuery.Animation = jQuery.extend( Animation, {
|
||||
});
|
||||
|
||||
function defaultPrefilter( elem, props, opts ) {
|
||||
/*jshint validthis:true */
|
||||
/* jshint validthis: true */
|
||||
var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
|
||||
anim = this,
|
||||
style = elem.style,
|
||||
|
||||
@@ -402,9 +402,7 @@ 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 */
|
||||
for ( ; cur !== this; cur = cur.parentNode || this ) {
|
||||
|
||||
// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
|
||||
if ( cur.disabled !== true || event.type !== "click" ) {
|
||||
|
||||
Reference in New Issue
Block a user