[TIMOB-10399] iOS: Application crashes when win.window property is accessed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-10-26T21:43:22.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Sprint 2012-17 API, Release 3.0.0 |
Components | iOS |
Labels | api |
Reporter | Anirudh Nagesh |
Assignee | Blain Hamon |
Created | 2012-08-10T14:06:07.000+0000 |
Updated | 2012-10-26T21:43:22.000+0000 |
Description
Run the below code snippet to see the app crashing on iOS.
On Android, it throws an error 'window is not defined'
var win = Ti.UI.createWindow({
layout : "vertical"
});
Ti.API.info("App crash by accessing window property"+win.window);
window.open();
The app crashes because of
'window' is not defined, 'win' is. Edit: 'win.window' crashes on iOS, which verified the validity of this bug. It should NOT crash.
window is a private property of Ti.UI.Window on iOS, and is not to be used by JS. To hide the non-JS intended properties requires deep changes to the underlying code at many levels. Short version: Don't do that. Marking as hold. Looking for bug describing underlying condition.
Closing as a duplicate of 10577.