[TIMOB-11742] BB: Ti.UI.Window close() does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-11-12T22:11:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | BlackBerry |
Labels | look1 |
Reporter | Dan Tamas |
Assignee | Josh Roesslein |
Created | 2012-11-10T17:19:43.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
capture-4.png | 2012-11-10T17:22:36.000+0000 | 61442 |
This was implemented recently in "master" branch and should be available in the next preview drop.
Closing ticket as BlackBerry is no longer supported by us.