mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery event: Fixes #3538. unbind on many events was failing.
This commit is contained in:
parent
c6f189ac73
commit
6898cd6d2a
@ -128,10 +128,10 @@ jQuery.event = {
|
||||
|
||||
// remove all handlers for the given type
|
||||
else
|
||||
for ( handler in events[type] )
|
||||
for ( var handle in events[type] )
|
||||
// Handle the removal of namespaced events
|
||||
if ( namespace.test(events[type][handler].type) )
|
||||
delete events[type][handler];
|
||||
if ( namespace.test(events[type][handle].type) )
|
||||
delete events[type][handle];
|
||||
|
||||
if ( jQuery.event.specialAll[type] )
|
||||
jQuery.event.specialAll[type].teardown.call(elem, namespaces);
|
||||
|
Loading…
Reference in New Issue
Block a user