{ "id": "111066", "key": "ALOY-559", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-27T00:56:44.000+0000", "created": "2013-03-12T16:50:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-01-28T23:55:19.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": "Upon building Alloy is optimising files which breaks their functionality especially in this circumstance relating to font character handling.\r\n\r\nThis function needs to be written this way so that TiIconicFont can read it properly and JS doesn't turn it into Emoji.\r\n\r\nfunction SSSocial(options) {\r\n switch (Ti.Platform.osname) {\r\n\t\tcase 'iphone':\r\n\t\tcase 'ipad':\r\n\t\t\tthis.fontfamily = 'SSSocialRegular';\r\n\t\t\tbreak;\r\n\t\tcase 'android':\r\n\t\t\tthis.fontfamily = 'SSSocialRegular';\r\n\t}\r\n \r\n\tthis.charcode = {\r\n\t\t'stack overflow':'\\uF672',\r\n\t\t'github octocat':'\\uF671',\r\n\t\t'githuboctocat':'\\uF671',\r\n\t\t'stackoverflow':'\\uF672',\r\n\t\t'google plus':'\\uF613',\r\n\t\t'kickstarter':'\\uF681',\r\n\t\t'foursquare':'\\uF690',\r\n\t\t'googleplus':'\\uF613',\r\n\t\t'instagram':'\\uF641',\r\n\t\t'pinterest':'\\uF650',\r\n\t\t'posterous':'\\uF623',\r\n\t\t'wordpress':'\\uF621',\r\n\t\t'thumbs up':'\\uD83D\\uDC4D',\r\n\t\t'dribbble':'\\uF660',\r\n\t\t'facebook':'\\uF610',\r\n\t\t'linkedin':'\\uF612',\r\n\t\t'thumbsup':'\\uD83D\\uDC4D',\r\n\t\t'google +':'\\uF613',\r\n\t\t'readmill':'\\uF652',\r\n\t\t'envelope':'\\u2709',\r\n\t\t'twitter':'\\uF611',\r\n\t\t'behance':'\\uF661',\r\n\t\t'dropbox':'\\uF653',\r\n\t\t'youtube':'\\uF630',\r\n\t\t'octocat':'\\uF671',\r\n\t\t'google+':'\\uF613',\r\n\t\t'approve':'\\uD83D\\uDC4D',\r\n\t\t'spotify':'\\uF6B1',\r\n\t\t'last fm':'\\uF6B2',\r\n\t\t'blogger':'\\uF622',\r\n\t\t'flickr':'\\uF640',\r\n\t\t'tumblr':'\\uF620',\r\n\t\t'paypal':'\\uF680',\r\n\t\t'lastfm':'\\uF6B2',\r\n\t\t'github':'\\uF670',\r\n\t\t'svpply':'\\uF651',\r\n\t\t'email':'\\u2709',\r\n\t\t'skype':'\\uF6A0',\r\n\t\t'vimeo':'\\uF631',\r\n\t\t'mail':'\\u2709',\r\n\t\t'rdio':'\\uF6B0',\r\n\t\t'like':'\\uD83D\\uDC4D',\r\n\t\t'rss':'\\uE310'\r\n\t};\r\n}\r\n \r\nSSSocial.prototype.getCharcode = function(options) {\r\n\tif (options === 'delete') {\r\n\t\toptions = 'del';\r\n\t}\r\n\treturn this.charcode[options];\r\n}\r\n \r\nmodule.exports = SSSocial;\r\n\r\nhttps://gist.github.com/iantearle/5144379", "attachment": [], "flagged": false, "summary": "Alloy optimisation breaks functionality", "creator": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "environment": "Alloy 1.0.0 Titanium 3.0.2.GA", "comment": { "comments": [ { "id": "243135", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ian, you mentioned that you found a solution to this in the developer community. Is this still a problem for you?", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T12:31:57.000+0000", "updated": "2013-03-20T12:31:57.000+0000" }, { "id": "249260", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The developer indicated in a Q&A post that he resolved his own problem. I will re-open if this needs to be addressed further.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-27T00:56:44.000+0000", "updated": "2013-04-27T00:56:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }