Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4125] Android: String/Text Properties on Proxies Initial Value Should be ''. The Empty String

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-06-13T09:20:06.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-23, Release 1.7.2, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterDon Thorp
AssigneeOpie Cyrus
Created2011-05-17T16:10:29.000+0000
Updated2011-07-06T16:51:05.000+0000

Description

A community member brought up the discussion that Android text proxies, specifically SearchBar.value, was returning '' for iOS and undefined for Android. Group API discussion ensued and we are stating that the initial values should be '' (the empty string) for Label.text, TextField.value, TextArea.value, and Button.title. Other fields may get added to this list over time.

Comments

  1. Don Thorp 2011-06-09

    The proxies should be initialized so they they contain "" instead of undefined for the listed controls.
  2. Don Thorp 2011-06-13

    Don tested via drillbit on Eris 2.1. Marshall tested via 2.2 emulator.
  3. Don Thorp 2011-06-23

    merged onto 1_7_X
  4. Natalie Huynh 2011-07-06

    Tested with 1.7.2.v20110630161836, verified that none are returning undefined, drillbit case is in 1.8 only. Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Bug 4125', backgroundColor:'#fff' }); var label = Ti.UI.createLabel(); var field = Ti.UI.createTextField(); var area = Ti.UI.createTextArea(); var search = Ti.UI.createSearchBar(); var button = Ti.UI.createButton(); var label1 = Titanium.UI.createLabel({ text:'Label.text: ' + label.text + '\nTextField.value:' + field.value + '\nTextArea.value:' + area.value + '\nSearchBar.value:' + search.value + '\nButton.value:' + button.title + '\nPass if none are undefined' }); win1.add(label1); win1.open();

JSON Source