Showing 120 of 135 total issues
Avoid deeply nested control flow statements. Open
Open
for ( c = 0, cl = classNames.length; c < cl; c++ ) {
if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
setClass += classNames[ c ] + " ";
}
}
Avoid deeply nested control flow statements. Open
Open
if ( ret === false ) {
event.preventDefault();
event.stopPropagation();
}
Avoid deeply nested control flow statements. Open
Open
if ( conv && s["throws"] ) {
response = conv( response );
} else {
try {
response = conv( response );
Avoid deeply nested control flow statements. Open
Open
if ( node === elem ) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if ( ret[r] === ret[n] ) {
ret.splice(n--, 1);
break;
}
Avoid deeply nested control flow statements. Open
Open
if ( !status && s.isLocal && !s.crossDomain ) {
status = responses.text ? 200 : 404;
// IE - #1450: sometimes returns 1223 when it should be 204
} else if ( status === 1223 ) {
status = 204;
Avoid deeply nested control flow statements. Open
Open
} else if ( copy !== undefined ) {
target[ name ] = copy;
}
Avoid deeply nested control flow statements. Open
Open
if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
contains( context, elem ) && elem.id === m ) {
results.push( elem );
return results;
}
Consider simplifying this complex logical expression. Open
Open
if ( document.querySelectorAll ) {
(function() {
var disconnectedMatch,
oldSelect = select,
rescape = /'|\\/g,
Consider simplifying this complex logical expression. Open
Open
if ( s.crossDomain == null ) {
parts = rurl.exec( s.url.toLowerCase() );
s.crossDomain = !!( parts &&
( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
Consider simplifying this complex logical expression. Open
Open
if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
return;
}
Consider simplifying this complex logical expression. Open
Open
if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
// Don't re-trigger an onFOO event when we call its FOO() method
old = elem[ ontype ];
Consider simplifying this complex logical expression. Open
Open
if ( unit !== "px" && start ) {
// Iteratively approximate from a nonzero starting point
// Prefer the current property, because this process will be trivial if it uses the same units
// Fallback to end or a simple constant
start = jQuery.css( tween.elem, prop, true ) || end || 1;
Consider simplifying this complex logical expression. Open
Open
if ( !jQuery.support.opacity ) {
jQuery.cssHooks.opacity = {
get: function( elem, computed ) {
// IE uses filters for opacity
return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
Function select
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var select = function( selector, context, results, seed, xml ) {
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
add: function( elem, types, handler, data, selector ) {
Function Tween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Tween( elem, options, prop, end, easing ) {
Function handlePOS
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function handlePOS( selector, context, results, seed, groups ) {
Function on
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {