[AC-4109] Windows Phone : Ti.UI.window open and close addEventListeners do not work for windows phone
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-08-02T18:47:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Sanchi Varma |
Assignee | Shak Hossain |
Created | 2016-07-15T13:10:06.000+0000 |
Updated | 2016-08-02T18:47:42.000+0000 |
Description
Hi,
I am facing the issue that Windows Phone is not entering in the "open" and "close" eventListeners.
For example, I am using :
Home.xml :
<Alloy>
<Window id="homeWindow" class="container">
.
.
.
Home.js :
function openBasic() {
Ti.API.log('openBasic');
.
.
closeWindow();
return;
}
function closeWindow() {
Ti.API.log('closeWindow() 1');
$.homeWindow.close();
return;
}
$.homeWindow.addEventListener('close', function() {
try {
Ti.API.log('1. Close ');
$.destroy();
$.off();
} catch(e) {
Ti.API.error('homejs Close homeWindow error : ' + e);
}
});
Now the code is entering : Ti.API.log('openBasic');
But NOT entering : addEventListener('close'...)
Please help on the same
No comments