Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11265] Window close event fired twice when exitOnClose is set to true

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-06T00:46:37.000+0000
Affected Version/sRelease 2.1.3, Release 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsAndroid
Labelsapi, module_window, qe-review, qe-testadded
ReporterHieu Pham
AssigneeHieu Pham
Created2012-10-04T23:35:49.000+0000
Updated2014-06-19T12:43:00.000+0000

Description

close event is fired twice when closing a window with exitOnClose set to true. Testing instructions: 1. Run this code
var win = Ti.UI.createWindow({fullscreen: true, exitOnClose: true});
win.open();
win.addEventListener('close', function(e) {
	Ti.API.info('win closed');
});
2. Hit the back button, observe log.

Comments

  1. Anshu Mittal 2012-10-25

    Tested with: SDK:3.0.0.v20121024144610 Studio: 3.0.0.201210220122 Device:HTC Desire V(Android 4.0.3) Window close event is fired once when exitOnClose is set to true.

JSON Source