[TIMOB-20600] Windows: close window throws unknown exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-03-22T13:37:32.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | Release 5.3.0 |
Components | Windows |
Labels | close, window, windows_phone |
Reporter | Zakhar Zhuravlev |
Assignee | Kota Iguchi |
Created | 2016-03-18T13:25:57.000+0000 |
Updated | 2016-04-12T20:43:21.000+0000 |
Description
It's affected 5.2.0.
Use case (working on ios/android):
Window_1 opens Window_2 -> Window_2 opens Window_3 -> Window_3 closes Window_2 -> App throws unknown exception.
*index.js:*
{noformat}
----
*second.js:*
{noformat}
----
*third.js:*
{noformat}
function onClick(e) {
var c = Alloy.createController('second', {
prevWin: $.win
});
var w = c.getView();
w.open();
}
$.win.open();
*index.xml:*
{noformat}
var args = $.args;
function onClick() {
var c = Alloy.createController('third', {
prevWin: $.win
});
var w = c.getView();
w.open();
}
*second.xml:*
{noformat}
var args = $.args;
function onClick() {
args.prevWin.close();
}
*third.xml:*
{noformat}
Verified as fixed, close window no longer throws unknown exception. Tested on: Windows 10 Home & Pro Windows Phone 10.0 & 8.1 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201604081249 Ti SDK: 5.3.0.v20160411203046 Appc NPM: 4.2.5-1 Appc Core: 5.3.0-12 Node: v4.4.2 *Closing Ticket.*