diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 1 | ||||
-rw-r--r-- | src/manipulation.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index ccdd49b21..6bb4fa816 100644 --- a/src/event.js +++ b/src/event.js @@ -50,6 +50,7 @@ jQuery.event = { if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; + selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later 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 ] ); } } } |