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

Android: read-only properties with no setter are writable/delete-able

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2016 Sprint 12 SDK

      Description

      Properties like apiName on all proxies, or Ti.App.version are marked as read-only properties in our docs. That means the user should not be able to overwrite their values or delete them. However you currently can:

      Ti.API.info('original version:' + Ti.App.version);
      Ti.App.version = 'my own very special string';
      Ti.API.info('modified version:' + Ti.App.version);
      delete Ti.App.version;
      Ti.API.info('deleted version:' + Ti.App.version);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cwilliams Christopher Williams
                Reviewer:
                Ashraf Abu (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration