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.
skar wrote: > Hi, > > Whenever I create a qx.ui.window.Window based object, the "resize" > listener gets called twice. Shouldn't it be called only once? > > I compared the 2 event objects and a "RE1 == RE2" evaluates to true, > also the timestamp is the same and even "RE1.toSource() == > RE2.toSource()" evaluates to true, meaning it's certainly a single event > which calls the listener twice. Can I avoid this from happening or if I > can't, can I at least compare an event to the previous one's and if > they're the same, I can skip any action in the listener? > > 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 qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel