diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-03-05 17:34:17 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-03-05 17:34:17 +0000 |
commit | fe1910d4d9f547774cb26f4770b303635333f8e6 (patch) | |
tree | 71efaae6176301c585f5bbfa871c946f1c6ce83e /src | |
parent | 9791855ea91988e9ff02063e0c5ece759d8ba898 (diff) | |
download | jquery-fe1910d4d9f547774cb26f4770b303635333f8e6.tar.gz jquery-fe1910d4d9f547774cb26f4770b303635333f8e6.zip |
Fix generic event handler and $events expando removal for IE
Diffstat (limited to 'src')
-rw-r--r-- | src/event/event.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event/event.js b/src/event/event.js index e276ab6da..8aedabbc6 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -75,21 +75,21 @@ jQuery.event = { // remove all handlers for the given type else - for ( handler in events[type] ) + for ( handler in element.$events[type] ) delete events[type][handler]; // remove generic event handler if no more handlers exist for ( ret in events[type] ) break; if ( !ret ) { - ret = element["on" + type] = undefined; - delete events[type]; + ret = element["on" + type] = null; + delete element.$events[type]; } } // Remove the expando if it's no longer used for ( ret in events ) break; if ( !ret ) - delete element.$events; + element.$events = null; } }, |