From 470cc071676394b46fbcfab1934340318d9ac751 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 21 Oct 2011 11:16:27 -0400 Subject: [PATCH] Don't add an empty list of handlers. --- src/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.js b/src/event.js index ff38d000d..abe3fb8f0 100644 --- a/src/event.js +++ b/src/event.js @@ -448,8 +448,8 @@ jQuery.event = { } } - // Add the remaining (directly- bound) handlers - if ( handlers.length ) { + // Add the remaining (directly-bound) handlers + if ( handlers.length > delegateCount ) { handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) }); } -- 2.39.5