Commit 892fb555 authored by jeresig's avatar jeresig

Make sure that the node exists before attempting to clone.

parent 100ed686
...@@ -279,7 +279,7 @@ function cloneCopyEvent(orig, ret) { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment