[richfaces-issues] [JBoss JIRA] Updated: (RF-4582) RichFaces JSMin compressor can create invalid Javascript

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Sat Dec 6 13:49:39 EST 2008


     [ https://jira.jboss.org/jira/browse/RF-4582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-4582:
-------------------------------

    Fix Version/s: Future


> RichFaces JSMin compressor can create invalid Javascript
> --------------------------------------------------------
>
>                 Key: RF-4582
>                 URL: https://jira.jboss.org/jira/browse/RF-4582
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>         Environment: Windows XP
>            Reporter: Matt Wheeler
>             Fix For: Future
>
>
> If a Javascript file has something like:
> var something = 'abc' + ++this.increment;
> then, after compression, it will look something like var a='abc'+++this.increment.  This may not be the exact translation, but, the important part is the three plus signs together which make the Javascript invalid.  It can of course be fixed by changing the original script to var something = 'abc' + (++this.increment);, but everyone may not have that liberty.  I tried this with the YUI Compressor, and it seemed to handle it correctly, but we could not use that for other reasons.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list