{ "id": "159264", "key": "ALOY-1487", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2016-04-02T08:50:18.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "18005", "name": "alloy 1.8.5", "archived": false, "released": true, "releaseDate": "2016-03-30" } ], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2016-04-02T08:52:26.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "I'd like to be able to use dashes (and other special characters) in IDs for XML elements:\r\n\r\n{code:xml}\r\n\r\n \r\n{code}\r\n\r\nWhich currently compiles to this syntax error:\r\n\r\n{code:js}\r\n $.__views.my - label = Ti.UI.createLabel({\r\n id: \"my-label\"\r\n });\r\n{code}\r\n\r\nWhich should become:\r\n\r\n{code:js}\r\n $.__views[\"my-label\"] = Ti.UI.createLabel({\r\n id: \"my-label\"\r\n });\r\n{code}\r\n\r\nNotes:\r\n\r\n* Generated code for adding child views, event listeners and so on should also use the bracket notation for these type of IDs.\r\n* Probably it's best to always use this notation and let Uglify optimise where possible.\r\n* Special characters in classes already work fine.", "attachment": [], "flagged": false, "summary": "Support using dashes and other special characters in XML element IDs", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }