{ "id": "101968", "key": "TIMOB-11117", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-11-02T12:30:46.000+0000", "created": "2012-09-25T19:22:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-ios090112" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "21331", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63771", "key": "TIMOB-3139", "fields": { "summary": "Android: UI.Window - Window in tabgroup focus event does not fire", "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": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-24T17:59:56.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": "Description:\r\nTabGroup has undefined value. \r\nConsole info:\r\n{code}\r\n[INFO] -------------> tab1 focus event fired! - Tab 1\r\n[INFO] -------------> tabGroup focus event fired! - undefined\r\n[INFO] -------------> win1 focus event fired! - win 1\r\n[INFO] **************> win1 blur event fired! - win 1\r\n[INFO] **************> tab1 blur event fired! - Tab 1\r\n[INFO] -------------> tabGroup focus event fired! - undefined\r\n[INFO] -------------> tab2 focus event fired! - Tab 2\r\n[INFO] -------------> win2 focus event fired! - win 2\r\n[INFO] **************> win2 blur event fired! - win 2\r\n[INFO] **************> tab2 blur event fired! - Tab 2\r\n{code}\r\n\r\nThis is not a regression, occurs on 2.1.2 and 2.1.1 as well.\r\n\r\nSteps to reproduce:\r\n1. Run the following code and check the console:\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tname: \"win 1\"\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n\tname: \"Tab 1\",\r\n\ttitle:'Tab 1',\r\n\twindow:win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tname: \"win 2\",\r\n\ttitle:'Tab 2',\r\n\tbackgroundColor:'#fff'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n\tname: \"Tab 2\",\r\n\ttitle:'Tab 2',\r\n\twindow:win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);\r\n});\r\ntab1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab1 focus event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab2 focus event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win1 focus event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win2 focus event fired! - ' + e.source.name);\r\n});\r\n\r\ntab1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab1 blur event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab2 blur event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win1 blur event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win2 blur event fired! - ' + e.source.name);\r\n});\r\n\r\ntabGroup.open();\r\n{code}\r\n2. Interchangeably press the two tabs\r\n\r\nExpected result:\r\nAll values should be defined\r\n\r\nActual result:\r\nTabGroup has undefined value", "attachment": [], "flagged": false, "summary": "iOS: TabGroup - TabGroup has undefined value", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on: \r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612 \r\nTitanium SDK, build: 2.1.3.v20120921190208 \r\nDevices: iPhone 4S (6.0.GM), iPhone 4S (4.3.5)", "comment": { "comments": [ { "id": "244094", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:30:08.000+0000", "updated": "2013-03-26T08:30:08.000+0000" }, { "id": "280313", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\n\nGot through the bug as I was executing TabGroup related test Cases.\nI think according to the code the tab group behavior(giving value as undefined) is correct. \nSince there is no custom property named \"name\" is assigned for tab group. \nHence the value retrieved for it gives undefined.\n\nAnd on modifying the code:\n\n{code}\nvar tabGroup = Ti.UI.createTabGroup({name:'test'});\nvar win1 = Ti.UI.createWindow({\n\tname: \"win 1\"\n});\nvar tab1 = Ti.UI.createTab({\n\tname: \"Tab 1\",\n\ttitle:'Tab 1',\n\twindow:win1\n});\n\nvar win2 = Ti.UI.createWindow({\n\tname: \"win 2\",\n\ttitle:'Tab 2',\n\tbackgroundColor:'#fff'\n});\nvar tab2 = Ti.UI.createTab({\n\tname: \"Tab 2\",\n\ttitle:'Tab 2',\n\twindow:win2\n});\n\ntabGroup.addTab(tab1);\ntabGroup.addTab(tab2);\n\ntabGroup.addEventListener('focus', function(e){\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.activeTab.name);gives the current tab name\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);// gives the name of tab group.\n});\n\ntabGroup.open();\n\n{code}\n\nAbove code works fine as per expectations.\nPlease let me know if anything wrong else bug can be updated.\n\nTested Environment:\n\nAppcelerator Studio: 3.2.0.201311200357\nSDK:3.2.0.v20131119142443\nalloy: 1.3.0\nacs: 1.0.7\nnpm: 1.3.2\ntitanium: 3.2.0-alpha\t\ntitanium-code-processor: 1.1.0-alpha\nXcode:5.0.2\nOS: Mac OSX 10.9\nDevice: iphone5S(V7.0.2)", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-20T11:35:26.000+0000", "updated": "2013-11-20T11:35:26.000+0000" }, { "id": "400251", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As [~pagarwal] noted correctly, the \"name\" property was not set and therefore undefined in the log. Using the following (simplified) test-case, it works as expected:\r\n{code:javascript}\r\nvar tabGroup = Ti.UI.createTabGroup({\r\n name: \"tabgroup\"\r\n});\r\n \r\nvar win1 = Ti.UI.createWindow({\r\n\tname: \"win 1\"\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n\tname: \"Tab 1\",\r\n\ttitle:'Tab 1',\r\n\twindow:win1\r\n});\r\n \r\nvar win2 = Ti.UI.createWindow({\r\n\tname: \"win 2\",\r\n\ttitle:'Tab 2',\r\n\tbackgroundColor:'#fff'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n\tname: \"Tab 2\",\r\n\ttitle:'Tab 2',\r\n\twindow:win2\r\n});\r\n \r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n \r\ntabGroup.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);\r\n});\r\n\r\n \r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-02T12:30:46.000+0000", "updated": "2016-11-02T12:30:46.000+0000" }, { "id": "415605", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T17:59:56.000+0000", "updated": "2017-03-24T17:59:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }