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 68c9d05
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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.