You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/09/16 19:09:45 UTC

[GitHub] [royale-asjs] nihavend opened a new issue #470: XML declaration warning

nihavend opened a new issue #470: XML declaration warning
URL: https://github.com/apache/royale-asjs/issues/470
 
 
   While declaring xml in mxml, I am getting warning from the compiler for case 1, and fixed with case 2. 
   
   case1 : 
   ```
   private function refreshSelect(data:XML):void  {
       var xml:XML = <mydata id="" />
       xml.@id = data;
       jobTree.refreshTree(xml);
   }
   ```
   converted to : 
   ```
   com.likya.pinara.main.PinaraUI.prototype.com_likya_pinara_main_PinaraUI_refreshSelect = function(data) {
     var /** @type {XML} */ xml = new XML( '<mydata id="" />\r\
   \t\t\t\t');
     xml.setAttribute('id', data);
     this.jobTree.refreshTree(xml);
   };
   ```
   warning :
   ```
   Sep 16, 2019 6:09:36 PM com.google.javascript.jscomp.LoggerErrorManager println
   WARNING: D:/dev/royale-emulation-works/github/bin/js-debug/com/likya/pinara/main/PinaraUI.js:367: WARNING - String continuations are not recommended. See https://google.github.io/styleguide/jsguide.html#features-strings-no-line-continuations
     var /** @type {XML} */ xml = new XML( '<mydata id="" />\r\
                                           ^
   ```
   case2 : 
   ```
   private function refreshSelect(data:XML):void {
       var xml:XML = <mydata id="" />;
       xml.@id = data;
       jobTree.refreshTree(xml);
    }
   ```
   converted to : 
   ```
   com.likya.pinara.main.PinaraUI.prototype.com_likya_pinara_main_PinaraUI_refreshSelect = function(data) {
     var /** @type {XML} */ xml = new XML( '<mydata id="" />');
     xml.setAttribute('id', data);
     this.jobTree.refreshTree(xml);
   };
   ```
   No warning.
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services