You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Giovanni Ornaghi (JIRA)" <ji...@apache.org> on 2015/02/18 19:37:11 UTC

[jira] [Closed] (CB-8502) Javascript function "parseInt" is broken

     [ https://issues.apache.org/jira/browse/CB-8502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giovanni Ornaghi closed CB-8502.
--------------------------------
    Resolution: Fixed

> Javascript function "parseInt" is broken
> ----------------------------------------
>
>                 Key: CB-8502
>                 URL: https://issues.apache.org/jira/browse/CB-8502
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>         Environment: Android 4.0.3
>            Reporter: Giovanni Ornaghi
>
> The JS function "parseInt" seems to be broken. I'm testing this using Cordova 4.2.0 on Android 4.0.3 and Ionic Framework.
> Example:
> var splitted = '1987-09-30'.split("-");
> var month = parseInt(splitted[1]);
> alert(splitted[1]);
> alert(month);
> the first alert will return "09". However the second alert (parseInt("09")) will return "0".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org