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

TiAPI: Break out Ti.Media constants to separate namespaces/enum groupings

    Details

    • Type: Improvement
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TiAPI
    • Labels:

      Description

      Currently we have a practice of grouping an enumeration of possible constant values on the parent module's namespace with some long identical prefix to denote their relationship.

      This is not a great way to organize the constants. While Javascript does not have a native enum type, we could certainly do a better job by namespacing the related values into a "group" by hanging them off an object.

      It clutters up the docs/API of the parent module, and leads to super-long ALL_UPPERCASE_SCARY_NAMES_LIKE_THIS.

      Something similar to:

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cwilliams Christopher Williams
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration