( elem, dir, until )
| 2466 | find.tokenize = tokenize; |
| 2467 | |
| 2468 | function 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 | |
| 2483 | function siblings( n, elem ) { |
| 2484 | var matched = []; |