aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-21 11:16:27 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-24 11:18:15 -0400
commit470cc071676394b46fbcfab1934340318d9ac751 (patch)
treecc537240892a752595e4bead788b099666c5b315 /src
parentd28ab68699f57238b3479c5c0b9dae23968bb7b7 (diff)
downloadjquery-470cc071676394b46fbcfab1934340318d9ac751.tar.gz
jquery-470cc071676394b46fbcfab1934340318d9ac751.zip
Don't add an empty list of handlers.
Diffstat (limited to 'src')
-rw-r--r--src/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index ff38d000d..abe3fb8f0 100644
--- a/src/event.js
+++ b/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 ) });
}