MCPcopy Index your code
hub / github.com/components/jquery / dir

Function dir

jquery.js:2468–2481  ·  view source on GitHub ↗
( elem, dir, until )

Source from the content-addressed store, hash-verified

2466find.tokenize = tokenize;
2467
2468function dir( elem, dir, until ) {
2469 var matched = [],
2470 truncate = until !== undefined;
2471
2472 while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
2473 if ( elem.nodeType === 1 ) {
2474 if ( truncate && jQuery( elem ).is( until ) ) {
2475 break;
2476 }
2477 matched.push( elem );
2478 }
2479 }
2480 return matched;
2481}
2482
2483function siblings( n, elem ) {
2484 var matched = [];

Callers 1

jquery.jsFile · 0.70

Calls 1

jQueryFunction · 0.70

Tested by

no test coverage detected