Showing 4,841 of 7,782 total issues
Avoid deeply nested control flow statements. Open
Open
for ( type in data.events ) {
if ( special[ type ] ) {
jQuery.event.remove( elem, type );
// This is a shortcut to avoid jQuery.event.remove's overhead
Avoid deeply nested control flow statements. Open
Open
if ( copyIsArray && !Array.isArray( src ) ) {
clone = [];
} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
clone = {};
} else {
Avoid deeply nested control flow statements. Open
Open
if (!targets.length) {
delete elem[zk.Widget._TARGETS];
}
Avoid deeply nested control flow statements. Open
Open
if (wgt) {
wgt = wgt.parent;
}
Avoid deeply nested control flow statements. Open
Open
if ( matchedSelectors[ sel ] ) {
matchedHandlers.push( handleObj );
}
Avoid deeply nested control flow statements. Open
Open
while ( i-- ) {
groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
toSelector( groups[ i ] );
}
Avoid deeply nested control flow statements. Open
Open
if (!elem) {
// treechildren may not have the value from $n()
elem = wgt.parent.$n();
}
Avoid deeply nested control flow statements. Open
Open
while ((node = ++nodeIndex && node && node[dir] ||
(diff = nodeIndex = 0) || start.pop())) {
if ((ofType ?
node.nodeName.toLowerCase() === name :
Avoid deeply nested control flow statements. Open
Open
if ( ( elem = matcherOut[ i ] ) ) {
// Restore matcherIn since elem is not yet a final match
temp.push( ( matcherIn[ i ] = elem ) );
}
Avoid deeply nested control flow statements. Open
Open
if ( newContext !== context || !support.scope ) {
// Capture the context ID, setting it first if necessary
if ( ( nid = context.getAttribute( "id" ) ) ) {
nid = nid.replace( rcssescape, fcssescape );
Avoid deeply nested control flow statements. Open
Open
if ( !( unmatched[ i ] || setMatched[ i ] ) ) {
setMatched[ i ] = pop.call( results );
}
Function extractFromRFC2822Strings
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
yearStr,
monthStr,
dayStr,
hourStr,
minuteStr,
Avoid deeply nested control flow statements. Open
Open
if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
cur += clazz + " ";
}
Avoid deeply nested control flow statements. Open
Open
if (!elem) {
// treechildren may not have the value from $n()
elem = wgt.parent.$n();
}
Avoid deeply nested control flow statements. Open
Open
if (node.nodeType === 1 && ++diff && node === elem) {
uniqueCache[type] = [dirruns, nodeIndex, diff];
break;
}
Avoid deeply nested control flow statements. Open
Open
if (!elem[zk.Widget._TARGET]) {
elem[zk.Widget._TARGET] = elem[zk.Widget._CURRENT_TARGET];
delete elem[zk.Widget._CURRENT_TARGET];
}
Avoid deeply nested control flow statements. Open
Open
if ( attrs[ i ] ) {
name = attrs[ i ].name;
if ( name.indexOf( "data-" ) === 0 ) {
name = camelCase( name.slice( 5 ) );
dataAttr( elem, name, data[ name ] );
Avoid deeply nested control flow statements. Open
Open
if ( restoreDisplay == null ) {
display = style.display;
restoreDisplay = display === "none" ? "" : display;
}
Avoid deeply nested control flow statements. Open
Open
if (cur[zk.Widget._CURRENT_TARGET]) {
cur[zk.Widget._TARGET] = cur[zk.Widget._CURRENT_TARGET];
delete cur[zk.Widget._CURRENT_TARGET];
}
Avoid deeply nested control flow statements. Open
Open
if ( ( event.result = ret ) === false ) {
event.preventDefault();
event.stopPropagation();
}