{ "id": "98986", "key": "TIMOB-10380", "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": [ { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14817", "description": "2013 Sprint 01 JS", "name": "2013 Sprint 01 JS", "archived": true, "released": true, "releaseDate": "2013-01-14" }, { "id": "14804", "description": "2013 Sprint 01", "name": "2013 Sprint 01", "archived": true, "released": true, "releaseDate": "2013-01-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-01-09T17:47:19.000+0000", "created": "2012-08-09T22:33:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-mia", "qe-mw082012", "regression" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "19829", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99023", "key": "TIMOB-10401", "fields": { "summary": "MobileWeb: Tab: window property not respected post-initialization", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-02-09T00:13:55.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "TabGroup.addTab results in Uncaught TypeError: Cannot read property of 'rightNavButton of undefined'. Screenshot attached.\r\n\r\nThis is a regression. This does not occur in Titanium SDK 2.1.0.\r\n\r\nThis does not occur in iOS.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code:\r\n\r\n{code}\r\nvar mainTabGroup = Ti.UI.createTabGroup();\r\n\r\nvar mainTab1 = Ti.UI.createTab({\r\n\tbackgroundColor : 'green'\r\n});\r\n\r\nmainTabGroup.addTab(mainTab1);\r\n\r\nvar mainTab2 = Ti.UI.createTab({\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nmainTabGroup.addTab(mainTab2);\r\n\r\nmainTabGroup.open();\r\n{code}\r\n\r\nActual Result:\r\n\r\nTypeError.\r\n\r\nExpected Result:\r\n\r\nTwo tabs.", "attachment": [ { "id": "30411", "filename": "addTab.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T22:33:41.000+0000", "size": 165896, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: TabGroup: addTab results in Uncaught TypeError: Cannot read property of 'rightNavButton of undefined'", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.2.201208081810\r\nTitanium SDK: 2.1.1, 2.1.2.v20120809183109\r\nOS: Mountain Lion\r\nBrowsers Tested: Chrome 21.0.1180.57, Firefox 14.0.1", "comment": { "comments": [ { "id": "213734", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to run without problem when creating a window for each tab then specifying the windows during tab creation with \"window:win1\" and \"window:win2\". \r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T01:26:43.000+0000", "updated": "2012-08-10T01:26:43.000+0000" }, { "id": "213735", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here is a modified sample that works with \"mobileweb - preview in browser\", \"mobileweb - preview in emulator\" and on iOS.\r\n\r\n{code}\r\nvar mainTabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar mainTab1 = Ti.UI.createTab({\r\n window:win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbackgroundColor:'red'\r\n});\r\n \r\nvar mainTab2 = Ti.UI.createTab({\r\n window:win2\r\n});\r\n\r\n \r\nmainTabGroup.addTab(mainTab1);\r\nmainTabGroup.addTab(mainTab2);\r\n \r\nmainTabGroup.open();\r\n{code}", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T01:36:05.000+0000", "updated": "2012-08-10T01:36:05.000+0000" }, { "id": "213788", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue exists on :\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120809153311 , 2.1.1 GA \r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 6,firefox 14.\r\n\r\n1.It is seen only when we do not create a window for each tab & then specifying it — as mentioned by Eric in the bug.\r\n2.Yes it is a regression . It does not happen on 2.1.0 GA.\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T10:46:55.000+0000", "updated": "2012-08-10T10:46:55.000+0000" }, { "id": "233625", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3682", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T16:22:43.000+0000", "updated": "2013-01-08T16:22:43.000+0000" }, { "id": "233628", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3683", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T16:25:27.000+0000", "updated": "2013-01-08T16:25:27.000+0000" }, { "id": "237871", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.getting two tabs one green & other red.\r\nThus closing the issue.\r\n\r\nEnvironment:\r\nTi Studio : 3.0.2.201302041757\r\nTi BB SDK : 3.0.2.v20130207164659\r\nMac OSX : 10.8.2\r\nCLI Version : 3.0.24-cr", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-09T00:13:55.000+0000", "updated": "2013-02-09T00:13:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }