Renato R. (RRaver) wrote:
> Hi Neil, really this was the problem, the list was empty, so no item at the 
> index...
> I switched back to appendItem and worked fine, but for some reason the 
> "random 
> list order" problem remains.
> 
> I will try the Michael solution and use a normal for instead of for in to see 
> if 
> it fix the "random list order" problem...
> 
> Thanks Neil and Michael for the much appreciated help!

The idea was to check the index, and to use insertItemAtIndex *only when 
possible* and _fall back_ to appendItem when needed.

Michael


_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to