Skip to content
Permalink
Browse files
More simplifications fore jQuery#html
  • Loading branch information
markelog committed Dec 23, 2012
1 parent bc70e0c commit 8958f7c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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

0 comments on commit 8958f7c

Please sign in to comment.