aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorAnton M <obhvsbypqghgc@gmail.com>2011-02-10 03:18:11 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-10 22:20:48 +0100
commit78fc79fad47ce2991c0a7148b65acd7221223eb9 (patch)
tree64c93cf8a10d490510300035a91741ad1f7b85ff /src/manipulation.js
parent4490f4285cc4cdafba67fee726d3eba4a3d81a0f (diff)
downloadjquery-78fc79fad47ce2991c0a7148b65acd7221223eb9.tar.gz
jquery-78fc79fad47ce2991c0a7148b65acd7221223eb9.zip
Make sure .clone(true) correctly clones namespaced events. Fixes #4537.
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 1e4df48c2..cd0732c3c 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -368,7 +368,7 @@ function cloneCopyEvent( src, dest ) {
for ( var type in events ) {
for ( var i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ], events[ type ][ i ].data );
+ jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
}
}
}