]> source.dussan.org Git - jquery.git/commitdiff
Don't add an empty list of handlers.
authorDave Methvin <dave.methvin@gmail.com>
Fri, 21 Oct 2011 15:16:27 +0000 (11:16 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 24 Oct 2011 15:18:15 +0000 (11:18 -0400)
src/event.js

index ff38d000d555927787fbedf3b19c1ae1137cbe05..abe3fb8f05d2b371346985b9245f2f9c097517ea 100644 (file)
@@ -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 ) });
                }