Make sure that the node exists before attempting to clone.
This commit is contained in:
parent
100ed68642
commit
892fb55547
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ function cloneCopyEvent(orig, ret) {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
ret.each(function(){
|
ret.each(function(){
|
||||||
if ( this.nodeName !== orig[i].nodeName ) {
|
if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue