You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Lorin Beer (JIRA)" <ji...@apache.org> on 2013/09/03 21:03:55 UTC
[jira] [Resolved] (CB-4648) FileReader example code is incorrect
[ https://issues.apache.org/jira/browse/CB-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lorin Beer resolved CB-4648.
----------------------------
Resolution: Fixed
corrected error callback parameter names, commit in comments
> FileReader example code is incorrect
> ------------------------------------
>
> Key: CB-4648
> URL: https://issues.apache.org/jira/browse/CB-4648
> Project: Apache Cordova
> Issue Type: Bug
> Components: Docs
> Affects Versions: 2.9.0
> Reporter: Peter
> Assignee: Michael Brooks
> Priority: Minor
>
> In the File API guide it seems almost all of the FileReader example code is incorrect for the error callbacks.
> For example,
> * readAsDataURL QuickExample - evt should be error?
> {code}
> var fail = function (evt) {
> console.log(error.code);
> };
> {code}
> * readAsText Quick Example - evt should be error?
> {code}
> var fail = function (evt) {
> console.log(error.code);
> };
> {code}
> * readAsText Full example - evt arg should be error? console.log(evt.target.error.code) should be console.log(error.code)?
> {code}
> function fail(evt) {
> console.log(evt.target.error.code);
> }
> {code}
> * readAsBinaryString - evt should be error?
> {code}
> var fail = function (evt) {
> console.log(error.code);
> };
> {code}
> * readAsArrayBuffer - evt should be error?
> {code}
> var fail = function (evt) {
> console.log(error.code);
> };
> {code}
--
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