Navigation Menu

Skip to content

Commit

Permalink
Simplification of jQuery#contents method
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog authored and dmethvin committed May 27, 2013
1 parent 26980c6 commit 68c9d05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/traversing.js
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 68c9d05

Please sign in to comment.