Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10399] iOS: Application crashes when win.window property is accessed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-10-26T21:43:22.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sSprint 2012-17 API, Release 3.0.0
ComponentsiOS
Labelsapi
ReporterAnirudh Nagesh
AssigneeBlain Hamon
Created2012-08-10T14:06:07.000+0000
Updated2012-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();

Comments

  1. Hieu Pham 2012-08-16

    The app crashes because of
       window.open()
       
    'window' is not defined, 'win' is. Edit: 'win.window' crashes on iOS, which verified the validity of this bug. It should NOT crash.
  2. Blain Hamon 2012-08-23

    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.
  3. Blain Hamon 2012-10-26

    Closing as a duplicate of 10577.

JSON Source