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

Ti.UI: Properties versus methods (getters/setters)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TiAPI
    • Labels:
      None
    • Environment:

      Titanium (any version)

      Description

      So I have been thinking about this for a while:

      Take the page
      http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollableView-method-scrollToView

      The method list shows a lot of bloat due to the inclusion of getters and setters. As far as I know there is no advantage in using properties over the associated getset-method. So I would hereby suggest the removal of these getters and setters, except for cases where it is actually beneficial to use a getter/setter (due to additional parameters perhaps?).

      I know this is a breaking change for almost any app out there, but we could start by deprecating these functionalities and removing them from the API docs. Ambiguity is in no way beneficial to understanding and developing Titanium apps.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                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