[ 
https://issues.apache.org/jira/browse/CB-3286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bas Bosman updated CB-3286:
---------------------------

    Component/s: Plugin File

> FileReader docs incorrect (for failure callbacks)
> -------------------------------------------------
>
>                 Key: CB-3286
>                 URL: https://issues.apache.org/jira/browse/CB-3286
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs, Plugin File
>            Reporter: Shazron Abdullah
>            Assignee: Michael Brooks
>
> See: http://docs.cordova.io/en/2.6.0/cordova_file_file.md.html#FileReader
> Notice there are two Quick Examples with this code, which will throw an 
> exception:
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> *Expected:*
> {code}
> var fail = function(evt) {
>     console.log(evt.target); // evt.target is the FileReader object
> };
> {code}
> *Actual:*
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to