Permalink
Browse files

Traversing: simplify jQuery#contents method

  • Loading branch information...
markelog committed Dec 21, 2014
1 parent 3dcee02 commit 7230df15ac612e0e5a08ed7ffc02f6700b2ec898
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/traversing.js
View
@@ -166,9 +166,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 ) {

0 comments on commit 7230df1

Please sign in to comment.