Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23403

iOS: Debug exception when calling moment.locale(Ti.Locale.currentLocale)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:
    • Story Points:
      1

      Description

      This is the line of code the exception is happening and name variable is "en-US", but we also use french as well and is the reason why we are calling moment.locale.
      require("alloy/moment/lang/" + name);

      Thread [kroll$1] (Suspended (exception at line 134 in moment.js))	
      	loadLocale(name) [moment.js:134]	
      	locale_locales__getLocale(key) [moment.js:163]	
      	locale_locales__getSetGlobalLocale(key, values) [moment.js:142]	
      	Controller() [index.js:43]	
      	createController(name, args) [alloy.js:232]	
      	[Top-level script] [app.js:3]	
      

      In Run mode this works fine and our date displays correctly for the locale. The example doesn't display date, but out app does.

      I have attached example code to demonstrate this issue. Run the app in Debug mode.

        Attachments

          Activity

            People

            • Assignee:
              apetkov Angel Petkov
              Reporter:
              cthomas Christy Thomas
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9753
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration