Binding Problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Binding Problem

doug777
Trying to build a Royale js project as previous posts.

After the build I am now left only with a bunch of warnings that all show
the same problem :

WARNING - Parse error. extra visibility tag
:   * @private

This warning shows up once for every [Bindable] var in the whole project.

My bindings are still set the way they were in Flex e.g.

[Bindable] private var showDiv : Boolean;

and then in the mxml

<html:Div visible="{showDiv}" width="100%">

Sometimes a single var is bound to several different mxml components.

Do I need to specify each binding as shown in DataBindingExample_as?

Or is there something else I'm missing?

Doug




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Binding Problem

doug777
I've now discovered that the error only appears if it's a private var.

[Bindable] public var ...

does not generate a warning.

Doug



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Binding Problem

Alex Harui-2
Yeah, that's a compiler bug I just haven't gotten around to.  You should
be able to ignore warnings about @private.

Thanks,
-Alex

On 3/19/18, 7:48 PM, "doug777" <[hidden email]> wrote:

>I've now discovered that the error only appears if it's a private var.
>
>[Bindable] public var ...
>
>does not generate a warning.
>
>Doug
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C71a74
>ff5e46e4a72b87408d58e0d103d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36571109198794675&sdata=KyLCaaaKh3FWuoXXqepZj8hfcWT1FVrJwRcHnjlVBzI%3D&res
>erved=0

Reply | Threaded
Open this post in threaded view
|

Re: Binding Problem

doug777
Hi Alex,

OK I'll just ignore all @private warnings.

Then no problem.

Thanks very much.

Doug



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/