aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2010-10-12 18:49:37 -0500
committerColin Snover <github.com@zetafleet.com>2010-10-12 18:49:37 -0500
commit1518ae1aedaafa820ed689ecf26cf43e92913896 (patch)
treee20be7e0648a23726816b91e744ac2d88fb6d4e6 /src/event.js
parentff6ceadbfd470463e63708413eb5a55bd7e90c69 (diff)
downloadjquery-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/event.js')
-rw-r--r--src/event.js4
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 );