Don't add an empty list of handlers.

This commit is contained in:
Dave Methvin
2011-10-21 11:16:27 -04:00
parent d28ab68699
commit 470cc07167

View 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 ) });
}