Commit 68c9d052 authored by Oleg's avatar Oleg Committed by Dave Methvin

Simplification of jQuery#contents method

parent 26980c6e
...@@ -179,9 +179,7 @@ jQuery.each({ ...@@ -179,9 +179,7 @@ jQuery.each({
return jQuery.sibling( elem.firstChild ); return jQuery.sibling( elem.firstChild );
}, },
contents: function( elem ) { contents: function( elem ) {
return jQuery.nodeName( elem, "iframe" ) ? return elem.contentDocument || jQuery.merge( [], elem.childNodes );
elem.contentDocument || elem.contentWindow.document :
jQuery.merge( [], elem.childNodes );
} }
}, function( name, fn ) { }, function( name, fn ) {
jQuery.fn[ name ] = function( until, selector ) { jQuery.fn[ name ] = function( until, selector ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment