From 6898cd6d2a8d515941032ddb806d3cbabd2d2506 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Thu, 8 Jan 2009 22:21:16 +0000 Subject: [PATCH] jquery event: Fixes #3538. unbind on many events was failing. --- src/event.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/event.js b/src/event.js index da03813b..06a6d831 100644 --- a/src/event.js +++ b/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);