Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46735

JavaScript minifier fails due to trailing comma

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: 7.0.0 M1
    • Component/s: Calendar
    • Labels:

      Description

      The minifying of the Calendar's JavaScript fails due to a trailing comma in javascript.js. The error below is reported:

      21:16:29,641 ERROR [http-bio-8080-exec-7][GoogleJavaScriptMinifier:88] (jndi:/localhost/calendar-portlet/js/javascript.js:444): Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option.
      21:16:29,642 ERROR [http-bio-8080-exec-7][GoogleJavaScriptMinifier:103] {0} error(s), {1} warning(s)
      21:16:39,694 ERROR [http-bio-8080-exec-4][GoogleJavaScriptMinifier:88] (calendar-portlet/js/javascript.js:444): Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrectly. If you are targeting newer versions of JS, set the appropriate language_in option.
      21:16:39,695 ERROR [http-bio-8080-exec-4][GoogleJavaScriptMinifier:103] {0} error(s), {1} warning(s)
      

        Attachments

          Activity

            People

            Assignee:
            sharon.choi Sharon Choi (Inactive)
            Reporter:
            adam.brandizzi Adam Brandizzi
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 30 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 M1