Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-178] Standardize Properties/getters and setters

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:14.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsios, iphone
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:24:51.000+0000
Updated2012-10-02T03:10:21.000+0000

Description

We need to go through all of our APIs and implement the following standards:

  • all constructor properties must be updatable via a set[Property] method
  • all supported properties must return the current value of the property (e.g., win.backgroundImage would return the current background image for the window)
  • all supported properties must support a get[Property] method - this is a convenience, so developers can either access the property or use a get[Property] method

there may be places where this does not make sense. we can address this on a case by case basis.

Comments

  1. Blain Hamon 2011-04-15

    0.9 and later does this automagically. It's neato.

JSON Source