Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19188] Windows: Ti.UI.Label.text = undefined will display string "undefined"

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-07-09T20:17:32.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterFokke Zandbergen
AssigneeGary Mathews
Created2015-07-08T14:59:14.000+0000
Updated2015-07-10T21:11:28.000+0000

Description

The following example will show undefined in the Label while I'd expect it to be empty.
var win = Ti.UI.createWindow({
	backgroundColor: '#fff'
});
win.add(Ti.UI.createLabel({
	text: undefined, textAlign: 'center',
	color: '#000'
}));
win.open();

Comments

  1. Gary Mathews 2015-07-09

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/368
  2. Lokesh Choudhary 2015-07-10

    Verified the fix. Closing. Environment: Appc Studio: 4.1.0.201507071122 Ti SDK: 4.2.0.v20150710092422 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0 APPC CLI: 4.1.0 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1

JSON Source