Commit 8958f7cd authored by Oleg's avatar Oleg

More simplifications fore jQuery#html

parent bc70e0c7
...@@ -185,8 +185,8 @@ jQuery.fn.extend({ ...@@ -185,8 +185,8 @@ jQuery.fn.extend({
i = 0, i = 0,
l = this.length; l = this.length;
if ( value === undefined ) { if ( value === undefined && elem.nodeType === 1 ) {
return elem.nodeType === 1 ? elem.innerHTML: undefined; return elem.innerHTML;
} }
// See if we can take a shortcut and just use innerHTML // See if we can take a shortcut and just use innerHTML
......
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