Re: [FlexJS]ArrayCollection

2016-07-08 Thread Harbs
I think I’m going to do simple Array sorting. I don’t need automatic sorting handled in binding. It’s probably a bad idea in general anyway. Sorting is much less performant in Javascript when you need sort functions. The Flash default sorts are pretty low level. On Jul 8, 2016, at 8:14 AM, Alex

Re: [FlexJS]ArrayCollection

2016-07-07 Thread Alex Harui
Please don't copy in the regular Flex ArrayCollection. IIRC it drags in a whole ton of crap. If you want sorting, maybe add sorting beads to ArrayList or a subclass of ArrayList. No need to bake sorting functionality into a particular collection implementation. We want loosely-coupled, pay-as-y

Re: [FlexJS]ArrayCollection

2016-07-07 Thread Harbs
It looks like there’s one place where I’m actually using ArrayCollection to do object sorting. I might need to work around this issue or bring in ArrayCollection. On Jul 6, 2016, at 5:10 PM, Alex Harui wrote: > > > On 7/6/16, 7:04 AM, "Harbs" wrote: > >> I use ArrayCollection a lot in my F

Re: [FlexJS]ArrayCollection

2016-07-06 Thread Harbs
ment.2333347.n4.nabble.com/FlexJS-ArrayCollection-tp53695p53702.html > Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS]ArrayCollection

2016-07-06 Thread Harbs
yw wrote: > >> Note that ArrayList doesn't work with for each(). Not sure why. >> >> >> >> -- >> View this message in context: >> http://apache-flex-development.247.n4.nabble.com/FlexJS-ArrayCollection-tp53695p53702.html >> Sent from the Apache Flex Development mailing list archive at Nabble.com. >

Re: [FlexJS]ArrayCollection

2016-07-06 Thread yishayw
Note that ArrayList doesn't work with for each(). Not sure why. -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-ArrayCollection-tp53695p53702.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS]ArrayCollection

2016-07-06 Thread Harbs
OK. Thanks. I’ll have to look at my code, but I’d be surprised if I needed ArrayCollection rather than ArrayList in virtually all cases. On Jul 6, 2016, at 5:10 PM, Alex Harui wrote: > > > On 7/6/16, 7:04 AM, "Harbs" wrote: > >> I use ArrayCollection a lot in my Flex code. The Collection p

Re: [FlexJS]ArrayCollection

2016-07-06 Thread Alex Harui
On 7/6/16, 7:04 AM, "Harbs" wrote: >I use ArrayCollection a lot in my Flex code. The Collection project in >FlexJS does not have ArrayCollection, so there’s no way to just change a >package name in that code. Is ArrayList a drop-in for ArrayCollection? org.apache.flex.collections.ArrayList is

[FlexJS]ArrayCollection

2016-07-06 Thread Harbs
I use ArrayCollection a lot in my Flex code. The Collection project in FlexJS does not have ArrayCollection, so there’s no way to just change a package name in that code. Is ArrayList a drop-in for ArrayCollection? Harbs