mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
More simplifications fore jQuery#html
This commit is contained in:
parent
bc70e0c718
commit
8958f7cd9d
@ -185,8 +185,8 @@ jQuery.fn.extend({
|
||||
i = 0,
|
||||
l = this.length;
|
||||
|
||||
if ( value === undefined ) {
|
||||
return elem.nodeType === 1 ? elem.innerHTML: undefined;
|
||||
if ( value === undefined && elem.nodeType === 1 ) {
|
||||
return elem.innerHTML;
|
||||
}
|
||||
|
||||
// See if we can take a shortcut and just use innerHTML
|
||||
|
Loading…
Reference in New Issue
Block a user