aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-24 04:28:52 +0400
committerOleg <markelog@gmail.com>2012-12-24 04:28:52 +0400
commitfa3dad300fb6dc1882eef178cc22a1d7f3974ec1 (patch)
tree64e24f885ca5952d55ae0cd9e648a3e9e7fca125 /src/manipulation.js
parent33be48acfdc2059368c3c8d171a1ddb94a3c9be9 (diff)
downloadjquery-fa3dad300fb6dc1882eef178cc22a1d7f3974ec1.tar.gz
jquery-fa3dad300fb6dc1882eef178cc22a1d7f3974ec1.zip
Simplify check for non-Elements
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js9
1 files changed, 1 insertions, 8 deletions
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.