Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-2770

Bug JS: happens when js file in module contains tab charecter at header

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.5.0.Final
    • Fix Version/s: 3.5.5.Final, 3.6.0.Beta01
    • Component/s: None
    • Labels:
      None

      Description

      • Declare a js (ex: abc.js) file in gatein-resources.xml
         
        ...
          <module>
            <name>moduleName</name>
            <script>
              <path>/javascript/webui/abc.js</path>
            </script>
          </module>
        ...
        
      • 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

      abc.js
      	/**
      	 * Some comments...
      	 */
      (function(gj) {
      ...
      

      – js file after remove tab

      abc.js
      /**
       * Some comments...
       */
      (function(gj) {
      ...
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                vstorm83 Vu Viet Phuong
                Reporter:
                dongpd Pham Duy Dong
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: