X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fmanipulation.js;h=5f4b15dd946168211586820da2a1c00debf999bb;hp=3b9aa1462147d665ce9002e6937750869e3ab71b;hb=82ac384b494258e17e2856ee2259475ecb0174ca;hpb=f28c774f2cde004a33aefc28306d995c599d963b diff --git a/src/manipulation.js b/src/manipulation.js index 3b9aa14..5f4b15d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -390,8 +390,8 @@ function cloneCopyEvent(orig, ret) { curData.events = {}; for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); + for ( var i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( this, type, events[ type ][ i ], events[ type ][ i ].data ); } } }