]> source.dussan.org Git - jquery.git/commitdiff
Simplify check for non-Elements
authorOleg <markelog@gmail.com>
Mon, 24 Dec 2012 00:28:52 +0000 (04:28 +0400)
committerOleg <markelog@gmail.com>
Mon, 24 Dec 2012 00:28:52 +0000 (04:28 +0400)
src/manipulation.js

index 355739a1062f3c028db887ac951bdc8a600749ed..61a6216be1a8724acb8a9f092d362d915be47fc6 100644 (file)
@@ -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.