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

Rewrite Ti.App.Properties to a simpler form

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android, iOS, Windows, Windows phone
    • Labels:
    • Environment:

      Any

    • Story Points:
      0
    • Sprint:
      2018 Sprint 16 SDK

      Description

      Ti.App.Properties currently has a load of bloat functions which do not add anything but confusion.

      I suggest using a plain function like:

      `Ti.App.Properties.set('myKey', mixedValue)`;
      `Ti.App.Properties.get('myKey');` (will then return either an object/array/string/number, depending on what you've set).

      And discard all functions like `setList`, `setObject`, `setString`, `getList`, `getObject`, `getString`.

      Also instead of having `Ti.App.Properties.removeAllProperties()`, we should aim for a concise naming like `Ti.App.Properties.clear()`. We are already in the Properties namespace so no need to repeat it in any of it's functions.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              uzbbert Bert
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code