Forgot to make sure that oldData actually had data in it before the copy attempt.
This commit is contained in:
parent
7d0c18034e
commit
9360cccc9e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue