Eliminate global variable "l" (!)

This commit is contained in:
Dave Methvin 2011-09-11 20:44:44 -04:00 committed by timmywil
parent 30249ab572
commit 6c618ddb0d

View 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