]> source.dussan.org Git - jquery.git/commitdiff
More simplifications fore jQuery#html
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 23:16:02 +0000 (03:16 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:04:18 +0000 (03:04 +0400)
src/manipulation.js

index aff90bd4afc0780a67b5c0ec699aad1c8965ee37..269b1d04348946160ced30739fe9499d1edf880a 100644 (file)
@@ -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