{ "id": "88048", "key": "TIMOB-8049", "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": "2012-03-27T15:25:42.000+0000", "created": "2012-03-15T21:22:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:07:13.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When Titanium.Locale.formatTelephoneNumber is used, it shows an exception with a message which says, \"Result of expression 'Titanium.Locale.formatTelephoneNumber' [undefined] is not a function.\";\r\n\r\nIt works well on android.\r\n\r\nExpected behavior: Titanium.Locale.formatTelephoneNumber(+123456789) should return +1-234-567-890\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\r\nbackgroundColor:'white'\r\n});\r\nvar button = Titanium.UI.createButton({\r\n title: 'Hello',\r\n top: 10,\r\n width: 100,\r\n height: 50\r\n});\r\n\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click',function(e)\r\n{\r\n var t = Titanium.Locale.formatTelephoneNumber(\"+1234567890\");\r\n Ti.API.info(t);\r\n});\r\n\r\n\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Titanium.Locale.formatTelephoneNumber returns error.", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio SDK: 1.8.2\r\niOS : 5.0", "comment": { "comments": [ { "id": "410917", "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-09T23:07:13.000+0000", "updated": "2017-03-09T23:07:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }