diff options
author | jeresig <jeresig@gmail.com> | 2010-01-25 17:01:07 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-25 17:01:07 -0500 |
commit | 390186b902c4c1ac13e23754d33ed4d8b3d5fa38 (patch) | |
tree | edb94a89926d029bfc56d35bc2b640dcfccca86d /src | |
parent | 0474917c9d82fa13d865282d2da2d3cb6e5b89ec (diff) | |
download | jquery-390186b902c4c1ac13e23754d33ed4d8b3d5fa38.tar.gz jquery-390186b902c4c1ac13e23754d33ed4d8b3d5fa38.zip |
Make sure that special.add actually copies over event namespaces and data. Fixes #5779 and #5834.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js index 8ec1d4f36..58f7a3190 100644 --- a/src/event.js +++ b/src/event.js @@ -114,6 +114,8 @@ jQuery.event = { var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { modifiedHandler.guid = modifiedHandler.guid || handler.guid; + modifiedHandler.data = modifiedHandler.data || handler.data; + modifiedHandler.type = modifiedHandler.type || handler.type; handler = modifiedHandler; } } |