From 8958f7cd9db57864a5a4d155cc6c9471756cd34a Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 20 Dec 2012 03:16:02 +0400 Subject: [PATCH] More simplifications fore jQuery#html --- src/manipulation.js | 4 ++-- 1 file 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 -- 2.39.5