aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-05-26 15:20:47 +0400
committerDave Methvin <dave.methvin@gmail.com>2013-05-27 11:21:28 -0400
commit68c9d0528c43d89cbdab302c68924fb11cd3439c (patch)
tree6aa902f95b03bfba64dc7ea17a349b51de4c819e
parent26980c6ec96369bbaf87be1e405594df8ec3f0dc (diff)
downloadjquery-68c9d0528c43d89cbdab302c68924fb11cd3439c.tar.gz
jquery-68c9d0528c43d89cbdab302c68924fb11cd3439c.zip
Simplification of jQuery#contents method
-rw-r--r--src/traversing.js4
1 files changed, 1 insertions, 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 ) {