@@ 4845-4870 (lines=26) @@ | ||
4842 | elem.contentDocument || elem.contentWindow.document : |
|
4843 | jQuery.makeArray( elem.childNodes ); |
|
4844 | } |
|
4845 | }, function( name, fn ) { |
|
4846 | jQuery.fn[ name ] = function( until, selector ) { |
|
4847 | var ret = jQuery.map( this, fn, until ), |
|
4848 | // The variable 'args' was introduced in |
|
4849 | // https://github.com/jquery/jquery/commit/52a0238 |
|
4850 | // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. |
|
4851 | // http://code.google.com/p/v8/issues/detail?id=1050 |
|
4852 | args = slice.call(arguments); |
|
4853 | ||
4854 | if ( !runtil.test( name ) ) { |
|
4855 | selector = until; |
|
4856 | } |
|
4857 | ||
4858 | if ( selector && typeof selector === "string" ) { |
|
4859 | ret = jQuery.filter( selector, ret ); |
|
4860 | } |
|
4861 | ||
4862 | ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; |
|
4863 | ||
4864 | if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { |
|
4865 | ret = ret.reverse(); |
|
4866 | } |
|
4867 | ||
4868 | return this.pushStack( ret, name, args.join(",") ); |
|
4869 | }; |
|
4870 | }); |
|
4871 | ||
4872 | jQuery.extend({ |
|
4873 | filter: function( expr, elems, not ) { |
@@ 5518-5538 (lines=21) @@ | ||
5515 | elem.contentDocument || elem.contentWindow.document : |
|
5516 | jQuery.makeArray( elem.childNodes ); |
|
5517 | } |
|
5518 | }, function( name, fn ) { |
|
5519 | jQuery.fn[ name ] = function( until, selector ) { |
|
5520 | var ret = jQuery.map( this, fn, until ); |
|
5521 | ||
5522 | if ( !runtil.test( name ) ) { |
|
5523 | selector = until; |
|
5524 | } |
|
5525 | ||
5526 | if ( selector && typeof selector === "string" ) { |
|
5527 | ret = jQuery.filter( selector, ret ); |
|
5528 | } |
|
5529 | ||
5530 | ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; |
|
5531 | ||
5532 | if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { |
|
5533 | ret = ret.reverse(); |
|
5534 | } |
|
5535 | ||
5536 | return this.pushStack( ret, name, slice.call( arguments ).join(",") ); |
|
5537 | }; |
|
5538 | }); |
|
5539 | ||
5540 | jQuery.extend({ |
|
5541 | filter: function( expr, elems, not ) { |