{ "id": "92924", "key": "TIMOB-9435", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-07T08:52:36.000+0000", "created": "2012-06-06T23:16:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "qe-ios060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17699", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "92873", "key": "TIMOB-9412", "fields": { "summary": "iOS: Tabgroup - Calling GetWindow() method of the active tab crashes the application.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:29:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Calling Window property of the active tab does not return the window object.\r\n\r\nThis is not a regression. The issue occurs as far back as 1.8.2\r\n\r\nSteps to Reproduce:\r\n1. Create an application with the code below.\r\n2. Launch the app.\r\n\r\nActual: Application does not return window object but the app runs without error. It does not give any warning or error even in console.\r\n\r\nExpected: Should be able to return the window object successfully.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\ntabGroup.addTab(tab1); \r\n\r\n\r\ntabGroup.setActiveTab(0);\r\nalert(tabGroup.activeTab.window);\r\n\r\ntabGroup.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS:TabGroup - Calling Window property of the active tab does not return the window object.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with SDK: 2.1.0.v20120605190238\r\nTested with Titanium Studio, build: 2.1.0.201206041625\r\nDevice: iPhone 3GS (v 5.0.1), iPhone simulator, iPad2 (V5.1)\r\nOS: Mac OSX Version 10.7.3", "comment": { "comments": [ { "id": "410582", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:29:00.000+0000", "updated": "2017-03-09T21:29:00.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }