yishayw opened a new issue #798: hasOwnProperty on mxml item returns false in 
Royale, unlike Flex
URL: https://github.com/apache/royale-asjs/issues/798
 
 
   The following example works in Flex, but not in Royale
   ```
   <mx:Application xmlns:local="*" xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.apache.org/royale/mx" 
        applicationComplete="init()"
        width="600" height="400">
        <fx:Script>     
        <![CDATA[
   
                private function init():void
                {
                        if (this.hasOwnProperty("myTest"))
                        {
                                trace('works');
                        }
                }
   
        ]]>
        </fx:Script>
        <mx:Button id="myTest"/>
   </mx:Application>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to