Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4109] Windows Phone : Ti.UI.window open and close addEventListeners do not work for windows phone

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-08-02T18:47:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterSanchi Varma
AssigneeShak Hossain
Created2016-07-15T13:10:06.000+0000
Updated2016-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

Comments

No comments

JSON Source