mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 10:18:06 -05:00
Don't add an empty list of handlers.
This commit is contained in:
@@ -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 ) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user