mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 09:05:42 -05:00
More simplifications fore jQuery#html
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user