Fix patch for #7150, which was not deleting the events object properly on plain JS objects. Thanks to jitter for catching it.
This commit is contained in:
parent
ff6ceadbfd
commit
1518ae1aed
2 changed files with 6 additions and 3 deletions
|
@ -282,11 +282,11 @@ jQuery.event = {
|
|||
handle.elem = null;
|
||||
}
|
||||
|
||||
delete elemData[ eventKey ];
|
||||
delete elemData.events;
|
||||
delete elemData.handle;
|
||||
|
||||
if ( typeof elemData === "function" ) {
|
||||
jQuery.removeData( elem, "events" );
|
||||
jQuery.removeData( elem, eventKey );
|
||||
|
||||
} else if ( jQuery.isEmptyObject( elemData ) ) {
|
||||
jQuery.removeData( elem );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue