mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Simplification of jQuery#contents method
This commit is contained in:
parent
26980c6ec9
commit
68c9d0528c
@ -179,9 +179,7 @@ jQuery.each({
|
||||
return jQuery.sibling( elem.firstChild );
|
||||
},
|
||||
contents: function( elem ) {
|
||||
return jQuery.nodeName( elem, "iframe" ) ?
|
||||
elem.contentDocument || elem.contentWindow.document :
|
||||
jQuery.merge( [], elem.childNodes );
|
||||
return elem.contentDocument || jQuery.merge( [], elem.childNodes );
|
||||
}
|
||||
}, function( name, fn ) {
|
||||
jQuery.fn[ name ] = function( until, selector ) {
|
||||
|
Loading…
Reference in New Issue
Block a user