Make sure that elements that have been removed also have their special events cleaned up. Fixes #6084.

This commit is contained in:
jeresig 2010-02-13 06:10:43 -05:00
parent 6a82f2ae63
commit da966573c3
3 changed files with 26 additions and 5 deletions

View file

@ -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