Simplification of jQuery#contents method

This commit is contained in:
Oleg 2013-05-26 15:20:47 +04:00 committed by Dave Methvin
parent 26980c6ec9
commit 68c9d0528c

View File

@ -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 ) {