Showing 166 of 228 total issues
Function >
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
">": function( checkSet, part ) {
var elem,
isPartStr = typeof part === "string",
i = 0,
l = checkSet.length;
Function handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handle: function( event ) {
event = jQuery.event.fix( event || window.event );
// Snapshot the handlers list since a called handler may add/remove events.
var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
run_all = !event.exclusive && !event.namespace,
Function getArraySample
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getArraySample(array, start, length, direction){
// initialize empty array
var sample = [];
// clone the length argument
var loopLength = length;
Consider simplifying this complex logical expression. Open
Open
if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
return;
}
Avoid deeply nested control flow statements. Open
Open
if ( elem && elem.parentNode ) {
// Handle the case where IE and Opera return items
// by name instead of ID
if ( elem.id === match[3] ) {
return makeArray( [ elem ], extra );
Avoid deeply nested control flow statements. Open
Open
if ( jQuery.isPlainObject( context ) ) {
selector = [ document.createElement( ret[1] ) ];
jQuery.fn.attr.call( selector, context, true );
} else {
Avoid deeply nested control flow statements. Open
Open
if ( !relativeHierarchySelector || hasParent ) {
return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
}
Avoid deeply nested control flow statements. Open
Open
} else if (aph == 12) h = 12;
else h = aph + 12;
Function ATTR
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ATTR: function( match, curLoop, inplace, result, not, isXML ) {
Avoid deeply nested control flow statements. Open
Open
if ( pos == null ) {
eventType.splice( j--, 1 );
}
Avoid deeply nested control flow statements. Open
Open
if ( !isXML ) {
elem.sizcache = doneName;
elem.sizset = i;
}
Avoid deeply nested control flow statements. Open
Open
for ( j = tbody.length - 1; j >= 0 ; --j ) {
if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
tbody[ j ].parentNode.removeChild( tbody[ j ] );
}
}
Avoid deeply nested control flow statements. Open
Open
if ( name.indexOf( "data-" ) === 0 ) {
name = jQuery.camelCase( name.substring(5) );
dataAttr( this[0], name, data[ name ] );
}
Avoid deeply nested control flow statements. Open
Open
if ( elem.id !== match[2] ) {
return rootjQuery.find( selector );
}
Avoid deeply nested control flow statements. Open
Open
if ( display === "inline" ) {
this.style.display = "inline-block";
} else {
this.style.display = "inline";
Avoid deeply nested control flow statements. Open
Open
if ( typeof cur !== "string" ) {
if ( elem === cur ) {
match = true;
break;
}
Avoid deeply nested control flow statements. Open
Open
if ( !xhrCallbacks ) {
xhrCallbacks = {};
jQuery( window ).unload( xhrOnUnloadAbort );
}
Avoid deeply nested control flow statements. Open
Open
if (h == 0) tmph = 12 +'a';
else if (h < 12) tmph += 'a';
else tmph += 'p';
Avoid deeply nested control flow statements. Open
Open
if (aph == 12) h = 0;
else h = aph;
Avoid deeply nested control flow statements. Open
Open
if ( special.remove ) {
special.remove.call( elem, handleObj );
}