[
https://issues.apache.org/jira/browse/CB-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756927#comment-13756927
]
ASF subversion and git services commented on CB-4648:
-----------------------------------------------------
Commit 80df88110a7ca8eff9d7a7087885c1b62dfc5e53 in branch refs/heads/master
from [~lorin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=80df881 ]
[CB-4648] corrected error callback parameter names
> 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