Skip to content
Permalink
Browse files

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

  • Loading branch information
flesler committed Jan 8, 2009
1 parent c6f189a commit 6898cd6d2a8d515941032ddb806d3cbabd2d2506
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/event.js
@@ -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);

0 comments on commit 6898cd6

Please sign in to comment.
You can’t perform that action at this time.