Skip to content

Commit

Permalink
Simplify check for non-Elements
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Dec 24, 2012
1 parent 33be48a commit fa3dad3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/manipulation.js
Expand Up @@ -633,14 +633,7 @@ function getAll( context, tag ) {
} }


function fixCloneNodeIssues( src, dest ) { function fixCloneNodeIssues( src, dest ) {
var nodeName; var nodeName = dest.nodeName.toLowerCase();

// We do not need to do anything for non-Elements
if ( dest.nodeType !== 1 ) {
return;
}

nodeName = dest.nodeName.toLowerCase();


// Support: IE >= 9 // Support: IE >= 9
// Fails to persist the checked state of a cloned checkbox or radio button. // Fails to persist the checked state of a cloned checkbox or radio button.
Expand Down

0 comments on commit fa3dad3

Please sign in to comment.