{ "id": "130764", "key": "TIMOB-17019", "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": "2014-05-22T13:32:04.000+0000", "created": "2014-05-22T09:09:03.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:44:20.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "getBackgroundColor method returns undefined when no backgroundColor is set for window.\r\n\r\nSteps to reproduce:\r\n1. Copy the code and run the app.\r\n\r\nExpected Result:\r\nMust return Background Color as transparent\r\n\r\nActual Result:\r\n[INFO] Background Color is undefined\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\t\ttitle:\"test color\"\r\n\t});\t\r\nTi.API.info(\"Background Color is \"+ win.getBackgroundColor());\r\nwin.open();\r\n{code}\r\n\r\nThis is not a regression", "attachment": [], "flagged": false, "summary": "Ti.UI.Window: getBackgroundColor method returns undefined when no backgroundColor is set for window ", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc-Studio:3.3.0.201405211748\r\nsdk:3.3.0.v20140521174951\r\nacs:1.0.14\r\nalloy:1.4.0-alpha2\r\nnpm:1.3.2\r\ntitanium:3.3.0-alpha5\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nDevice:Iphone5s(v7.1.1),iPad Air(v7.1.1)\r\nOS:Maverick(10.9.2)\r\n", "closedSprints": [ { "id": 119, "state": "closed", "name": "2014 Sprint 11 Tooling", "startDate": "2014-05-27T16:30:27.477Z", "endDate": "2014-06-07T01:30:00.000Z", "completeDate": "2014-06-12T20:51:59.189Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "306067", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Every property returns undefined if it hasn't been set. I don't love it. I've argued that we should have sensible defaults, however as the iOS docs state, the initial value of many properties is nil and thus does not have a default value so Titanium just returns undefined.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-22T13:32:04.000+0000", "updated": "2014-05-22T13:32:04.000+0000" }, { "id": "413958", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:44:20.000+0000", "updated": "2017-03-20T20:44:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }