]
Nick Belaevski updated RF-4582:
-------------------------------
Assignee: Nick Belaevski
Priority: Optional (was: Major)
RichFaces JSMin compressor can create invalid Javascript
--------------------------------------------------------
Key: RF-4582
URL:
https://jira.jboss.org/jira/browse/RF-4582
Project: RichFaces
Issue Type: Bug
Components: core
Affects Versions: 3.2.2
Environment: Windows XP
Reporter: Matt Wheeler
Assignee: Nick Belaevski
Priority: Optional
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: