aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-02-13 06:10:43 -0500
committerjeresig <jeresig@gmail.com>2010-02-13 06:10:43 -0500
commitda966573c3f3cb083c48cd3ead88e7542937d4df (patch)
treef570d6a9a36ff663c837c4b9119e511b8b58d185 /src/event.js
parent6a82f2ae63263ed9deaff9d9dcc775a2c0cde343 (diff)
downloadjquery-da966573c3f3cb083c48cd3ead88e7542937d4df.tar.gz
jquery-da966573c3f3cb083c48cd3ead88e7542937d4df.zip
Make sure that elements that have been removed also have their special events cleaned up. Fixes #6084.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 6e65438ac..d91231e86 100644
--- a/src/event.js
+++ b/src/event.js
@@ -112,6 +112,10 @@ jQuery.event = {
if ( special.add ) {
special.add.call( elem, handleObj );
+
+ if ( !handleObj.handler.guid ) {
+ handleObj.handler.guid = handler.guid;
+ }
}
// Add the function to the element's handler list