Commit 9360cccc authored by jeresig's avatar jeresig

Forgot to make sure that oldData actually had data in it before the copy attempt.

parent 7d0c1803
...@@ -283,7 +283,7 @@ function cloneCopyEvent(orig, ret) { ...@@ -283,7 +283,7 @@ function cloneCopyEvent(orig, ret) {
return; 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 ) { if ( events ) {
delete curData.handle; delete curData.handle;
......
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