More simplifications fore jQuery#html

This commit is contained in:
Oleg 2012-12-20 03:16:02 +04:00
parent bc70e0c718
commit 8958f7cd9d

View File

@ -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