Commit fa3dad30 authored by Oleg's avatar Oleg

Simplify check for non-Elements

parent 33be48ac
...@@ -633,14 +633,7 @@ function getAll( context, tag ) { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment