From: Oleg Date: Wed, 19 Dec 2012 23:16:02 +0000 (+0400) Subject: More simplifications fore jQuery#html X-Git-Tag: 2.0.0b1~59^2~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8958f7cd9db57864a5a4d155cc6c9471756cd34a;p=jquery.git More simplifications fore jQuery#html --- diff --git a/src/manipulation.js b/src/manipulation.js index aff90bd4a..269b1d043 100644 --- a/src/manipulation.js +++ b/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