flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] Data-binding fails when following multiple references
Date Tue, 10 Jan 2017 18:24:58 GMT


On 1/10/17, 10:02 AM, "piotrz" <piotrzarzycki21@gmail.com> wrote:

>Alex,
>
>I was also thinking that it shouldn't necessary be in that case generic
>binding, but again it is all about condition.
>
>In case of ViewBinding condition is
>
>if (binding.source is Array
>&& binding.source[0] == "applicationModel"
>&& binding.source.length == 2 && binding.destination.length == 2)
>
>binding.source[0] is not "applicationModel" and later watcher map is being
>created from that model. I'm not sure whether I can add another condition:
>
>if (binding.source is Array && binding.source.length == 2 &&
>binding.destination.length == 2)
>//and then create simple binding
>
>I will try, but if this can be a fix ?

Yes, or just remove the
	&& binding.source[0] == "applicationModel"

It may no longer be needed.  I've been wondering if it is needed.  I don't
think ContainerDataBinding has such a check.

Thanks,
-Alex

Mime
View raw message