Skip to content
Permalink
Browse files

Make sure that the node exists before attempting to clone.

  • Loading branch information
jeresig committed Dec 17, 2009
1 parent 100ed68 commit 892fb555477dc96f58e3f8fd5446f7990188fc21
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 892fb55

Please sign in to comment.
You can’t perform that action at this time.