aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-01-28 14:58:00 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-01-28 16:30:35 -0500
commit633ca9c1610c49dbb780e565f4f1202e1fe20fae (patch)
tree379b62b9c5677e67fa57714bb4eb56b4464be761 /src/manipulation.js
parent499658970b2c9add7a7d175dffc8e263c3b7b50d (diff)
downloadjquery-633ca9c1610c49dbb780e565f4f1202e1fe20fae.tar.gz
jquery-633ca9c1610c49dbb780e565f4f1202e1fe20fae.zip
Fix #11076. If .clone() won't delegate, we must remediate.
Since `jQuery.event.add` can accept a handleObj there's no need to reiterate them as args, but we *do* need to set the `selector` variable correctly.
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 1b535074f..e3a7f6b12 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -394,7 +394,7 @@ function cloneCopyEvent( src, dest ) {
for ( type in events ) {
for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
+ jQuery.event.add( dest, type, events[ type ][ i ] );
}
}
}