mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Simplify check for non-Elements
This commit is contained in:
parent
33be48acfd
commit
fa3dad300f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user