From 68c9d0528c43d89cbdab302c68924fb11cd3439c Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 26 May 2013 15:20:47 +0400 Subject: [PATCH] Simplification of jQuery#contents method --- src/traversing.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ) { -- 2.39.5