Make sure that elements that have been removed also have their special events cleaned up. Fixes #6084.
This commit is contained in:
parent
6a82f2ae63
commit
da966573c3
3 changed files with 26 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue