I don't mean that simply the same event object is resused for the same 
event, I mean they are pooled. When fireEvent is called it finds out 
what type of event object is needed and grabs one from the pool if it 
exists, fires the event and then returns it to the pool. You could see 
the same event object for two different events on two different objects!

(or at least I'm quite sure that's how it works)

skar wrote:
> Matthew Gregory wrote:
>> I haven't looked at this but from what I have seen of the event system 
>> you can't safely save a reference to an event object and compare it with 
>> another. The reason is that event objects are pooled so it could well be 
>> that the same event object is used for two different events.
>>   
> Ok, if there is a single event, for which multiple listeners are there, 
> each can be doing its own thing. In that case, using the same event 
> object is right.
> 
> But in my case, the same listener is called with the same event twice 
> and I'm doing some time consuming server oriented stuff here and doing 
> that twice for nothing isn't useful and adds to the time user has to sit 
> waiting for the ui to load :) Hope some one can clear this up.
> 
> cheers,
> skar.
> 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to