git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7d0c180
)
Forgot to make sure that oldData actually had data in it before the copy attempt.
author
jeresig
<jeresig@gmail.com>
Tue, 22 Dec 2009 18:28:46 +0000
(13:28 -0500)
committer
jeresig
<jeresig@gmail.com>
Tue, 22 Dec 2009 18:28:46 +0000
(13:28 -0500)
src/manipulation.js
patch
|
blob
|
history
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
27bc0b4
..
2af2d7e
100644
(file)
--- 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;