cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3409) FileReader.readAsText(string) is deprecated and Broken. Needs to be removed.
Date Wed, 29 May 2013 19:38:20 GMT

    [ https://issues.apache.org/jira/browse/CB-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669605#comment-13669605
] 

ASF subversion and git services commented on CB-3409:
-----------------------------------------------------

Commit 11bdd3899eb4344a18dcbf65a938c67b87cd7950 in branch refs/heads/master from [~drkemp]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=11bdd38 ]

CB-3409 removed deprecated FileReader.readAsText(string) handling

                
> FileReader.readAsText(string) is deprecated and Broken. Needs to be removed.
> ----------------------------------------------------------------------------
>
>                 Key: CB-3409
>                 URL: https://issues.apache.org/jira/browse/CB-3409
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.7.0
>            Reporter: Flavio Spezi
>            Assignee: Andrew Grieve
>              Labels: patch
>
> This is an example code:
> {code:javascript}
> function readMyFile() {
>     var filename = "testFile.txt";
>     var objFile = new FileReader();
>     objFile.onloadend = function(e) {
>         console.log("Result: " + JSON.stringify(e));
>     }
>    objFile.readAsText(filename);
> }
> {code}
> Collback function returns error:
> e.target.error.code = "JSON error"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message