[jQuery] Re: Trigger global event is slow in 1.1.4

2007-08-28 Thread John Resig
In order to do that, we'd have to maintain a list of elements who have global handlers bound - which is what we did previously and which is what caused all the leaks and slowdowns. --John On 8/28/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote: > I wonder, would it be possible to optimize > > jQuer

[jQuery] Re: Trigger global event is slow in 1.1.4

2007-08-28 Thread Aaron Heimlich
I wonder, would it be possible to optimize jQuery("*") into context.getElementsByTagName("*") On 8/28/07, John Resig <[EMAIL PROTECTED]> wrote: > > > Yep, unfortunately there's really no way around that. We had to make > that change so that there wasn't massive leaks and slowdowns on adding > e

[jQuery] Re: Trigger global event is slow in 1.1.4

2007-08-28 Thread John Resig
Yep, unfortunately there's really no way around that. We had to make that change so that there wasn't massive leaks and slowdowns on adding events. IMO, having fast event adding and no leaks is better than having slow global event triggering (which is pretty rare). I should clarify that we only r