MCPcopy Create free account
hub / github.com/TruthHun/BookStack / dir

Function dir

static/wangEditor/js/lib/jquery-2.2.1.js:2688–2701  ·  view source on GitHub ↗
( elem, dir, until )

Source from the content-addressed store, hash-verified

2686
2687
2688var dir = function( elem, dir, until ) {
2689 var matched = [],
2690 truncate = until !== undefined;
2691
2692 while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
2693 if ( elem.nodeType === 1 ) {
2694 if ( truncate && jQuery( elem ).is( until ) ) {
2695 break;
2696 }
2697 matched.push( elem );
2698 }
2699 }
2700 return matched;
2701};
2702
2703
2704var siblings = function( n, elem ) {

Callers 1

jquery-2.2.1.jsFile · 0.70

Calls 1

jQueryFunction · 0.70

Tested by

no test coverage detected