Skip to content
Permalink
Browse files

Don't add an empty list of handlers.

  • Loading branch information...
dmethvin committed Oct 21, 2011
1 parent d28ab68 commit 470cc071676394b46fbcfab1934340318d9ac751
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) });
}

0 comments on commit 470cc07

Please sign in to comment.
You can’t perform that action at this time.