Skip to content
Permalink
Browse files
Simplification of jQuery#contents method
  • Loading branch information
markelog authored and dmethvin committed May 27, 2013
1 parent 26980c6 commit 68c9d0528c43d89cbdab302c68924fb11cd3439c
Showing with 1 addition and 3 deletions.
  1. +1 −3 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 ) {

0 comments on commit 68c9d05

Please sign in to comment.