Skip to content
Permalink
Browse files

More simplifications fore jQuery#html

  • Loading branch information
markelog committed Dec 23, 2012
1 parent bc70e0c commit 8958f7cd9db57864a5a4d155cc6c9471756cd34a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/manipulation.js
@@ -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.
You can’t perform that action at this time.