Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-404

String.toUpperCase used in Alloy is not OK with all browsers - solution provided

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: No Longer Reproducible
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: Form - JS (deprecated)
    • Labels:
    • Environment:
      Chrome 9-10

      Description

      in aui-event.js on line 194 and aui-event.base.js on line 149

      In firefox it works, but in chrome it doesn't.
      var toUpperCase = String.toUpperCase;

      toUpperCase is just undefined.

      SOLUTION:

      var toUpperCase = String.prototype.toUpperCase;
      var upperCaseString = toUpperCase.apply("my string");

        Attachments

          Activity

            People

            Assignee:
            ui_alloy UI Alloy
            Reporter:
            vychtrle Jakub Liska (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 13 weeks, 5 days ago

                Packages

                Version Package