Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11742] BB: Ti.UI.Window close() does not work

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-12T22:11:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsBlackBerry
Labelslook1
ReporterDan Tamas
AssigneeJosh Roesslein
Created2012-11-10T17:19:43.000+0000
Updated2017-03-16T20:24:13.000+0000

Description

The window *close()* method does not work
var win = Ti.UI.createWindow({
	backgroundColor:'#f00'
});

win.open();


var open_lbl = Ti.UI.createLabel({
	text:'Open yellow window',
	backgroundColor:'#fff'
});

win.add(open_lbl);


var yellow_win =  Ti.UI.createWindow({
	backgroundColor:'#ff0'
});



var close_lbl = Ti.UI.createLabel({
	top:100,
	backgroundColor:'#0f0',
	text:'Close yellow window'
});

yellow_win.add(close_lbl);




open_lbl.addEventListener('click', function(){
	yellow_win.open();
});


close_lbl.addEventListener('click', function(){
	try {
		yellow_win.close();
	}
	catch(err) {
		alert(err);
	}
});

Attachments

FileDateSize
capture-4.png2012-11-10T17:22:36.000+000061442

Comments

  1. Josh Roesslein 2012-11-12

    This was implemented recently in "master" branch and should be available in the next preview drop.
  2. Lee Morris 2017-03-16

    Closing ticket as BlackBerry is no longer supported by us.

JSON Source