Giovanni Ornaghi created CB-8502:
------------------------------------

             Summary: 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
    Affects Versions: 4.0.0
         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to