Commit 470cc071 authored by Dave Methvin's avatar Dave Methvin

Don't add an empty list of handlers.

parent d28ab686
......@@ -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 ) });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment