mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 20:48:01 -05:00
Make sure that the node exists before attempting to clone.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user