cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giovanni Ornaghi (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-8502) Javascript function "parseInt" is broken
Date Wed, 18 Feb 2015 18:37:11 GMT

     [ 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


Mime
View raw message