MCPcopy
hub / github.com/babysor/MockingBird / dir

Function dir

web/static/js/jquery.js:2996–3009  ·  view source on GitHub ↗
( elem, dir, until )

Source from the content-addressed store, hash-verified

2994
2995
2996var dir = function( elem, dir, until ) {
2997 var matched = [],
2998 truncate = until !== undefined;
2999
3000 while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
3001 if ( elem.nodeType === 1 ) {
3002 if ( truncate && jQuery( elem ).is( until ) ) {
3003 break;
3004 }
3005 matched.push( elem );
3006 }
3007 }
3008 return matched;
3009};
3010
3011
3012var siblings = function( n, elem ) {

Callers 3

_log_paramsMethod · 0.85
log_paramsMethod · 0.85
jquery.jsFile · 0.85

Calls 1

jQueryFunction · 0.85

Tested by

no test coverage detected