aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-22 13:28:46 -0500
committerjeresig <jeresig@gmail.com>2009-12-22 13:28:46 -0500
commit9360cccc9eb276cfd571066d87bb099d5d109516 (patch)
treee48d53f5f65b518d3ef5284c543ff33c78b16250 /src/manipulation.js
parent7d0c18034e1a7967c1aabc84e66e6fd020cd541d (diff)
downloadjquery-9360cccc9eb276cfd571066d87bb099d5d109516.tar.gz
jquery-9360cccc9eb276cfd571066d87bb099d5d109516.zip
Forgot to make sure that oldData actually had data in it before the copy attempt.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 27bc0b46b..2af2d7e7d 100644
--- a/src/manipulation.js
+++ b/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;