[gatein-issues] [JBoss JIRA] (GTNPORTAL-2770) Bug JS: happens when js file in module contains tab charecter at header
Trong Tran (JIRA)
jira-events at lists.jboss.org
Sun May 26 23:13:06 EDT 2013
[ https://issues.jboss.org/browse/GTNPORTAL-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trong Tran updated GTNPORTAL-2770:
----------------------------------
Fix Version/s: 3.5.5.Final
> Bug JS: happens when js file in module contains tab charecter at header
> -----------------------------------------------------------------------
>
> Key: GTNPORTAL-2770
> URL: https://issues.jboss.org/browse/GTNPORTAL-2770
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.5.0.Final
> Reporter: Pham Duy Dong
> Assignee: Vu Viet Phuong
> Priority: Minor
> Fix For: 3.5.5.Final, 3.6.0.Beta01
>
>
> - Declare a js (ex: abc.js) file in gatein-resources.xml
> {code:xml}
> ...
> <module>
> <name>moduleName</name>
> <script>
> <path>/javascript/webui/abc.js</path>
> </script>
> </module>
> ...
> {code}
> - Require it in groovy template file
> - In a javascript file (ex: abc.js):
> If comment at top file contains tab character(\t) at begining line, js bug happens
> After remove tab, bug js also not happens anymore
> -- js file with tab at header
> {code:title=abc.js|borderStyle=solid}
> /**
> * Some comments...
> */
> (function(gj) {
> ...
> {code}
> -- js file after remove tab
> {code:title=abc.js|borderStyle=solid}
> /**
> * Some comments...
> */
> (function(gj) {
> ...
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list