diff options
author | Oleg <markelog@gmail.com> | 2012-12-20 03:16:02 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:04:18 +0400 |
commit | 8958f7cd9db57864a5a4d155cc6c9471756cd34a (patch) | |
tree | 5c6a94edcb4e3d509bdd71b6cd4f825118804060 /src/manipulation.js | |
parent | bc70e0c718e3c517e4551dddffd31663b53337b7 (diff) | |
download | jquery-8958f7cd9db57864a5a4d155cc6c9471756cd34a.tar.gz jquery-8958f7cd9db57864a5a4d155cc6c9471756cd34a.zip |
More simplifications fore jQuery#html
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |