Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6398] MobileWeb: Some properties passed in to a UI element constructor are ignored.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-12-13T22:34:37.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsMobileWeb
Labelsn/a
ReporterBryan Hughes
AssigneeChris Barber
Created2011-11-30T17:06:21.000+0000
Updated2017-03-03T23:17:03.000+0000

Description

The Ti._5.preset() and Ti._5.presetUserDefinedElements() are used to initialize properties based on the args passed in. They perform a check on the property and only set the value if the property was previously undefined. Many (most?) of the properties are set to null (which is not undefined) causing the arguments to be ignored. These methods needs to be replaced with better versions, and UI properties need to be initialized to proper default values.

Attachments

FileDateSize
app.js2011-12-07T03:15:46.000+00005860

Comments

  1. Bryan Hughes 2011-12-03

    Test is Kitchen Sink.
  2. Chris Barber 2011-12-07

    I attached a test case, but the Kitchen Sink should also be tested.
  3. Chris Barber 2011-12-07

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/865
  4. Lee Morris 2017-03-03

    Closing ticket.

JSON Source