You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by doug777 <do...@gmail.com> on 2018/03/20 02:31:17 UTC

Binding Problem

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/

Re: Binding Problem

Posted by doug777 <do...@gmail.com>.
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/

Re: Binding Problem

Posted by Alex Harui <ah...@adobe.com>.
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" <do...@gmail.com> 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


Re: Binding Problem

Posted by doug777 <do...@gmail.com>.
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/