Affects Version/s: Release 1.7.3
Tested using the following systems, with identical results.
- Titanium SDK version: 1.7.3 (08/05/11 10:17 32b4803...)
- Android 2.2 on Samsung Galaxy Tab v7
- Windows XP
- Titanium 1.7.3 (2011/08/05 10:18 )
- Android 2.1-update1
- Ubuntu 10.04
- Titanium Studio, build: 22.214.171.124108041935
The close event is not fired when window close() method is called for heavyweight windows (enabling modal or fullscreen etc). However, lightweight windows work as expected. I (the reporter) have tested this with all versions from 1.7.x branch, 1.8.0 latest also has this issue, while this works with 1.6.x branch. Here is code that reproduces this issue:
No output is generated when this code is run and the button is clicked. Comment out the modal and fullscreen properties and the output will be generated as expected.
If a delay is introduced, using setTimeout(), the event for heavyweight windows is also fired:
Also note that the event is not fired if the windows is simply opened and immediately closed:
However, it works as expected if wrapped in setTimeout():