aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-17 13:15:12 -0500
committerjeresig <jeresig@gmail.com>2009-12-17 13:15:12 -0500
commit892fb555477dc96f58e3f8fd5446f7990188fc21 (patch)
tree552a005bd3e4c8955374de91f0b15d3baa127a56 /src/manipulation.js
parent100ed686426b8b404b094b8c8086aefce715f91a (diff)
downloadjquery-892fb555477dc96f58e3f8fd5446f7990188fc21.tar.gz
jquery-892fb555477dc96f58e3f8fd5446f7990188fc21.zip
Make sure that the node exists before attempting to clone.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 17cfa842d..d5523dd79 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -279,7 +279,7 @@ function cloneCopyEvent(orig, ret) {
var i = 0;
ret.each(function(){
- if ( this.nodeName !== orig[i].nodeName ) {
+ if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
return;
}