From: Oleg Date: Sun, 26 May 2013 11:20:47 +0000 (+0400) Subject: Simplification of jQuery#contents method X-Git-Tag: 2.0.2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68c9d0528c43d89cbdab302c68924fb11cd3439c;p=jquery.git Simplification of jQuery#contents method --- diff --git a/src/traversing.js b/src/traversing.js index b5a38f363..8e305c289 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -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 ) {