{ "id": "132006", "key": "ALOY-1056", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-20T19:13:28.000+0000", "created": "2014-06-19T21:48:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-closed-3.4.0", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-08-20T10:35: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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "*Preface*\r\nNot sure if this is an Alloy bug or we should not prefix property names with \"on\" in the Titanium SDK.\r\n\r\n*Description*\r\nTitanium SDK 3.3.0 introduces a new property for iOS that changes the color of the button when it is switched on: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Switch-property-onTintColor\r\n\r\nWhen using this property in Alloy XML markup, Alloy thinks it's an event.\r\n\r\nProperty works fine in TSS or Controller code.\r\n\r\n*REPRODUCTION and RESULTS*\r\nThe code below fails in the simulator with this error:\r\n{noformat}\r\n[ERROR] : Script Error {\r\n[ERROR] : backtrace = \"#0 () at file:///Users/bhatfield/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/4D9D3D70-9C78-4444-8A90-3C0277E07381/TestNewApis.app/alloy.js:232\";\r\n[ERROR] : line = 34;\r\n[ERROR] : message = \"Can't find variable: green\";\r\n[ERROR] : name = ReferenceError;\r\n[ERROR] : sourceId = 268417408;\r\n[ERROR] : sourceURL = \"file:///Users/bhatfield/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/4D9D3D70-9C78-4444-8A90-3C0277E07381/TestNewApis.app/alloy/controllers/index.js\";\r\n[ERROR] : }\r\n{noformat}\r\n\r\n*Test Case:*\r\n{noformat}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{noformat}", "attachment": [ { "id": "49140", "filename": "switch_off.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-06-20T08:26:58.000+0000", "size": 34238, "mimeType": "image/png" }, { "id": "49139", "filename": "switch_on.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-06-20T08:26:58.000+0000", "size": 33292, "mimeType": "image/png" } ], "flagged": false, "summary": "Cannot set onTintColor attribute/property in XML markup", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.8.5\r\nTitanium SDK: 3.3.0.v20140619130123\r\nAlloy 1.5.0-dev/commit 969bfaedf5fbb7f587c58be329b9db5159098979/Mon Jun 16 20:07:02 2014 -0400\r\nXcode 5.0.2/iOS 7.0.3/iOS Simulator 3.5\" Retina", "closedSprints": [ { "id": 142, "state": "closed", "name": "2014 Sprint 12 Alloy", "startDate": "2014-06-09T16:00:25.715Z", "endDate": "2014-06-23T16:00:00.000Z", "completeDate": "2014-06-23T14:35:50.386Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "310090", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Alloy assumes any XML attribute beginning with \"on\" are denoting event listeners. I added on manual workaround for an Android menu property that wasn't a listener. Looks like we'll have to make that more generic now that there are additional properties named with \"on\" that aren't used to signify event listeners.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-20T01:31:19.000+0000", "updated": "2014-06-20T01:31:19.000+0000" }, { "id": "310142", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/457\r\nTest app: https://github.com/feons/alloy/tree/ALOY-1056/test/apps/testing/ALOY-1056\r\n\r\nFunctional Test:\r\n\r\n 1. Compile the test app on iOS\r\n 2. onTintColor property works fine, the UI should look like attached screenshots.\r\n\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-06-20T08:26:58.000+0000", "updated": "2014-06-20T08:26:58.000+0000" }, { "id": "310239", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR tested and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-06-20T19:13:28.000+0000", "updated": "2014-06-20T19:13:28.000+0000" }, { "id": "319451", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\n\r\nAppc Studio - 3.4.0.201408180158 \r\nSDK - 3.4.0.v20140819094113 \r\nacs - 1.0.16 \r\nalloy - 1.5.0-dev \r\nnpm - 1.3.2 \r\ntitanium - 3.4.0-dev \r\ntitanium-code-processor - 1.1.1 \r\nOS - mavericks (v10.9.4) \r\nXcode - 6Beta5\r\nDevice - iPhone5s(v8.0)\r\n\r\nonTintColor working as expected.\r\nHence closing the issue", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T10:35:20.000+0000", "updated": "2014-08-20T10:35:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }