[TIMOB-8049] iOS: Titanium.Locale.formatTelephoneNumber returns error.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-27T15:25:42.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Devang Gandhi |
Assignee | Neeraj Gupta |
Created | 2012-03-15T21:22:32.000+0000 |
Updated | 2017-03-09T23:07:13.000+0000 |
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.";
It works well on android.
Expected behavior: Titanium.Locale.formatTelephoneNumber(+123456789) should return +1-234-567-890
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var button = Titanium.UI.createButton({
title: 'Hello',
top: 10,
width: 100,
height: 50
});
win.add(button);
button.addEventListener('click',function(e)
{
var t = Titanium.Locale.formatTelephoneNumber("+1234567890");
Ti.API.info(t);
});
win.open();
Closing ticket as invalid.