Maybe setting source[0] triggers change events that refresh source?

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel 
Freiman
Sent: Monday, September 15, 2008 12:03 PM
To: flexcoders
Subject: [flexcoders] XMLListCollection.AddItemAt() silently fails

I have a case where I try to add a node to an empty XMLListCollection and 
addition silently fails.  I step through the code and I find that line 216 of 
XMLListAdapater is the line that is failing (it's supposed to assign the added 
node to the first location in the source list but instead nothing happens).  
Here's the line:

source[0] = length > 0 ? item + source[0] : item;

I can't recreate this bug in any other condition other than the app I'm 
currently developing.  Has anyone else seen this intermitent error?

- Daniel Freiman

Reply via email to