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
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
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
That’s because it needs indexed access to items for that to work. (i.e. Proxy)
On Jul 6, 2016, at 4:36 PM, yishayw 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
(I do use for each a lot, but it’s probably a good idea to replace that with a
normal for or while loop for JS performance.)
On Jul 6, 2016, at 5:19 PM, Harbs wrote:
> That’s because it needs indexed access to items for that to work. (i.e. Proxy)
>
> On Jul 6, 2016, at 4:36 PM, yishayw 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.
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
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