@@ 5551-5562 (lines=12) @@ | ||
5548 | jQuery.find.matches(expr, elems); |
|
5549 | }, |
|
5550 | ||
5551 | dir: function( elem, dir, until ) { |
|
5552 | var matched = [], |
|
5553 | cur = elem[ dir ]; |
|
5554 | ||
5555 | while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { |
|
5556 | if ( cur.nodeType === 1 ) { |
|
5557 | matched.push( cur ); |
|
5558 | } |
|
5559 | cur = cur[dir]; |
|
5560 | } |
|
5561 | return matched; |
|
5562 | }, |
|
5563 | ||
5564 | nth: function( cur, result, dir, elem ) { |
|
5565 | result = result || 1; |
@@ 4883-4894 (lines=12) @@ | ||
4880 | jQuery.find.matches(expr, elems); |
|
4881 | }, |
|
4882 | ||
4883 | dir: function( elem, dir, until ) { |
|
4884 | var matched = [], |
|
4885 | cur = elem[ dir ]; |
|
4886 | ||
4887 | while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { |
|
4888 | if ( cur.nodeType === 1 ) { |
|
4889 | matched.push( cur ); |
|
4890 | } |
|
4891 | cur = cur[dir]; |
|
4892 | } |
|
4893 | return matched; |
|
4894 | }, |
|
4895 | ||
4896 | nth: function( cur, result, dir, elem ) { |
|
4897 | result = result || 1; |