Commit 6898cd6d authored by Ariel Flesler's avatar Ariel Flesler

jquery event: Fixes #3538. unbind on many events was failing.

parent c6f189ac
...@@ -128,10 +128,10 @@ jQuery.event = { ...@@ -128,10 +128,10 @@ jQuery.event = {
// remove all handlers for the given type // remove all handlers for the given type
else else
for ( handler in events[type] ) for ( var handle in events[type] )
// Handle the removal of namespaced events // Handle the removal of namespaced events
if ( namespace.test(events[type][handler].type) ) if ( namespace.test(events[type][handle].type) )
delete events[type][handler]; delete events[type][handle];
if ( jQuery.event.specialAll[type] ) if ( jQuery.event.specialAll[type] )
jQuery.event.specialAll[type].teardown.call(elem, namespaces); jQuery.event.specialAll[type].teardown.call(elem, namespaces);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment