]> source.dussan.org Git - jquery.git/commitdiff
Eliminate global variable "l" (!)
authorDave Methvin <dave.methvin@gmail.com>
Mon, 12 Sep 2011 00:44:44 +0000 (20:44 -0400)
committertimmywil <timmywillisn@gmail.com>
Mon, 19 Sep 2011 19:42:32 +0000 (15:42 -0400)
src/event.js

index 0376e49afb7a9e0da22f6f1ef44568b3f6eae702..8e756097c5763642685180f019ad7d684b377aa4 100644 (file)
@@ -580,7 +580,7 @@ function dispatch( target, event, handlers, args ) {
                j, handleObj, ret;
 
        event.currentTarget = target;
-       for ( j = 0, l = handlers.length; j < l && !event.isImmediatePropagationStopped(); j++ ) {
+       for ( j = 0; j < handlers.length && !event.isImmediatePropagationStopped(); j++ ) {
                handleObj = handlers[ j ];
 
                // Triggered event must either 1) be non-exclusive and have no namespace, or