Skip to content
Permalink
Browse files

Forgot to make sure that oldData actually had data in it before the c…

…opy attempt.
  • Loading branch information
jeresig committed Dec 22, 2009
1 parent 7d0c180 commit 9360cccc9eb276cfd571066d87bb099d5d109516
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/manipulation.js
@@ -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;

0 comments on commit 9360ccc

Please sign in to comment.
You can’t perform that action at this time.