Make sure .clone(true) correctly clones namespaced events. Fixes #4537.
This commit is contained in:
parent
4490f4285c
commit
78fc79fad4
2 changed files with 14 additions and 7 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue