diff options
author | jeresig <jeresig@gmail.com> | 2009-12-22 13:28:46 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-22 13:28:46 -0500 |
commit | 9360cccc9eb276cfd571066d87bb099d5d109516 (patch) | |
tree | e48d53f5f65b518d3ef5284c543ff33c78b16250 /src/manipulation.js | |
parent | 7d0c18034e1a7967c1aabc84e66e6fd020cd541d (diff) | |
download | jquery-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.js | 2 |
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; |