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/11/26 19:41:30 UTC

[GitHub] [royale-compiler] joshtynjala commented on issue #49: compiler binding removes latest '

joshtynjala commented on issue #49: compiler binding removes latest ' 
URL: https://github.com/apache/royale-compiler/issues/49#issuecomment-558787572
 
 
   Confirmed that this issue still exists in 0.9.7 nightlies.
   
   This following code correctly outputs the "s" character, so it seems to be handling the end quote incorrectly.
   
   ```mxml
   <j:Label text="textinput.width='{textinput.width}s"/>
   ```
   
   This also fails, and produces invalid code:
   
   ```mxml
   <j:Label text='textinput.width="{textinput.width}"'/>
   ```
   
   In case I need to review this again in the future, here's the current JS output of all three.
   
   Bug! Missing ' character:
   
   ```js
   function() { return "textinput.width='" + this.textinput.width; }
   ```
   
   Correct:
   
   ```js
   function() { return "textinput.width='" + this.textinput.width + "s"; }
   ```
   
   Bug! unescaped " character:
   
   ```js
   function() { return "textinput.width="" + this.textinput.width; }
   ```

----------------------------------------------------------------
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