diff options
author | Colin Snover <github.com@zetafleet.com> | 2010-10-12 18:49:37 -0500 |
---|---|---|
committer | Colin Snover <github.com@zetafleet.com> | 2010-10-12 18:49:37 -0500 |
commit | 1518ae1aedaafa820ed689ecf26cf43e92913896 (patch) | |
tree | e20be7e0648a23726816b91e744ac2d88fb6d4e6 /src | |
parent | ff6ceadbfd470463e63708413eb5a55bd7e90c69 (diff) | |
download | jquery-1518ae1aedaafa820ed689ecf26cf43e92913896.tar.gz jquery-1518ae1aedaafa820ed689ecf26cf43e92913896.zip |
Fix patch for #7150, which was not deleting the events object properly on plain JS objects. Thanks to jitter for catching it.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index 1bbf1348d..ab7567081 100644 --- a/src/event.js +++ b/src/event.js @@ -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 ); |