aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2013-04-24 16:07:15 -0400
committerCorey Frang <gnarf@gnarf.net>2013-04-24 17:09:30 -0400
commit55e319aa52eb828a3a4c2298aa75b6d15cfa06f8 (patch)
tree78ead6c21e7341eb1a015c53672843acc20cf78c /src/manipulation.js
parent3a6194076b8b7ab5a9d9f5e6ec602db2ab427d3e (diff)
downloadjquery-55e319aa52eb828a3a4c2298aa75b6d15cfa06f8.tar.gz
jquery-55e319aa52eb828a3a4c2298aa75b6d15cfa06f8.zip
Fixes #13815: Ensure each element has its own private data object - Tests by @rwldrn
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index e323a10ec..55d6e8510 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -527,11 +527,9 @@ function cloneCopyEvent( src, dest ) {
// 1. Copy private data: events, handlers, etc.
if ( data_priv.hasData( src ) ) {
pdataOld = data_priv.access( src );
- pdataCur = jQuery.extend( {}, pdataOld );
+ pdataCur = data_priv.set( dest, pdataOld );
events = pdataOld.events;
- data_priv.set( dest, pdataCur );
-
if ( events ) {
delete pdataCur.handle;
pdataCur.events = {};