[TIMOB-1154] window "close" event isn't fired for listeners registered on the creating context
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | Android |
Labels | android, close, context, defect, window |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T02:45:19.000+0000 |
Updated | 2011-04-17T01:55:21.000+0000 |
Description
If you create and open a "heavy weight" window (i.e a Window that starts it's own Activity), and register a "close" listener on the same context that you created the window, the listener will not receive the event (TiActivity only fires to listeners from it's registered list of contexts)
(from [1d3d5bb19ed919b711dd51d736bafe20df55cce7]) TiActivity now fires "close" to it's creating context, and only fires to listeners registered on it's associated WindowProxy [#1154 state:resolved] http://github.com/appcelerator/titanium_mobile/commit/1d3d5bb19ed919b711dd51d736bafe20df55cce7"> http://github.com/appcelerator/titanium_mobile/commit/1d3d5bb19ed91...