On 5/2/10 11:48 AM, Derrell Lipman wrote:
On Sun, May 2, 2010 at 10:23, Greg Beaver <[email protected] <mailto:[email protected]>> wrote:

    I've implemented a simple "appear-when-you-click" button in a tree
    folder, and have encountered some odd behavior.  The changeSelection
    event is fired about 10 times on a single change of the selection
    (i.e.
    click on the tree folder).  Is there an obvious reason why this would
    happen?  It requires me to add a check for the unnecessary redundant
    calls, and is noticeably slower.

Typically that shouldn't happen. I would expect one changeSelection event for each actual change of selection. Can you provide a small playground example that demonstrates the problem?
Hi,

After extensive debugging, I tracked down the problem, and it was PEBKAC. I was registering the same listener every time I created a treefolder. Duh. Sorry for the noise.

Greg
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to