MCPcopy Create free account
hub / github.com/unconed/TermKit / dirCheck

Function dirCheck

HTML/external/jquery-ui/development-bundle/jquery-1.5.1.js:4591–4630  ·  view source on GitHub ↗
( dir, cur, doneName, checkSet, nodeCheck, isXML )

Source from the content-addressed store, hash-verified

4589}
4590
4591function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
4592 for ( var i = 0, l = checkSet.length; i < l; i++ ) {
4593 var elem = checkSet[i];
4594
4595 if ( elem ) {
4596 var match = false;
4597
4598 elem = elem[dir];
4599
4600 while ( elem ) {
4601 if ( elem.sizcache === doneName ) {
4602 match = checkSet[elem.sizset];
4603 break;
4604 }
4605
4606 if ( elem.nodeType === 1 ) {
4607 if ( !isXML ) {
4608 elem.sizcache = doneName;
4609 elem.sizset = i;
4610 }
4611
4612 if ( typeof cur !== "string" ) {
4613 if ( elem === cur ) {
4614 match = true;
4615 break;
4616 }
4617
4618 } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
4619 match = elem;
4620 break;
4621 }
4622 }
4623
4624 elem = elem[dir];
4625 }
4626
4627 checkSet[i] = match;
4628 }
4629 }
4630}
4631
4632if ( document.documentElement.contains ) {
4633 Sizzle.contains = function( a, b ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected