How does the compiler figure out illegal values?

Any property of the main class should not be a valid id. Right?

> On Jun 8, 2018, at 6:42 PM, Alex Harui <[email protected]> wrote:
> 
> The compiler should probably report an error.  You shouldn't be able to do 
> id="width" or even id="id".
> 
> My 2 cents,
> -Alex
> 
> On 6/8/18, 1:27 AM, "Harbs" <[email protected]> wrote:
> 
>    Would defining a “parent" property on Application with a default value of 
> null fix this?
> 
>> On Jun 8, 2018, at 10:56 AM, Harbs <[email protected]> wrote:
>> 
>> BTW,
>> 
>> This code causes an endless loop in MouseEvent.mouseOverHandler. The Group 
>> is the “parent” of the application, so “parent” is never null…
>> 
>>> On Jun 8, 2018, at 2:25 AM, Harbs <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>>   <js:initialView>
>>>       <js:View>
>>>           <js:Group id="parent" style="padding:10px">
>>>               <js:Group id="child" x="20" y="20">
>>>                   <js:Label text="Hello"/>
>>>               </js:Group>
>>>           </js:Group>
>>>       </js:View>
>>>   </js:initialView>
>> 
> 
> 
> 

Reply via email to