mirror of
https://github.com/jquery/jquery.git
synced 2026-01-26 12:58:47 -05:00
Forgot to make sure that oldData actually had data in it before the copy attempt.
This commit is contained in:
@@ -283,7 +283,7 @@ function cloneCopyEvent(orig, ret) {
|
||||
return;
|
||||
}
|
||||
|
||||
var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData.events;
|
||||
var oldData = jQuery.data( orig[i++] ), curData = jQuery.data( this, oldData ), events = oldData && oldData.events;
|
||||
|
||||
if ( events ) {
|
||||
delete curData.handle;
|
||||
|
||||
Reference in New Issue
Block a user