From: Oleg Date: Mon, 24 Dec 2012 00:28:52 +0000 (+0400) Subject: Simplify check for non-Elements X-Git-Tag: 2.0.0b1~59^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa3dad300fb6dc1882eef178cc22a1d7f3974ec1;p=jquery.git Simplify check for non-Elements --- diff --git a/src/manipulation.js b/src/manipulation.js index 355739a10..61a6216be 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -633,14 +633,7 @@ function getAll( context, tag ) { } function fixCloneNodeIssues( src, dest ) { - var nodeName; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); + var nodeName = dest.nodeName.toLowerCase(); // Support: IE >= 9 // Fails to persist the checked state of a cloned checkbox or radio button.