Make sure that the node exists before attempting to clone.
This commit is contained in:
parent
100ed68642
commit
892fb55547
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue