You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/01/30 22:20:09 UTC

[jira] [Updated] (CB-4664) FileWriter example code is incorrect

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

Bas Bosman updated CB-4664:
---------------------------

    Component/s: Plugin File

> FileWriter example code is incorrect
> ------------------------------------
>
>                 Key: CB-4664
>                 URL: https://issues.apache.org/jira/browse/CB-4664
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs, Plugin File
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Assignee: Michael Brooks
>            Priority: Minor
>
> In the File API guide it seems almost all of the *FileWriter* example code is incorrect for the error callbacks.
> For example,
> * Seek Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> * Truncate Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> * Write Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> * Binary Write Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> * Append Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> * Abort Quick Example - evt should be error?
> {code}
> var fail = function(evt) {
>     console.log(error.code);
> };
> {code}
> ---
> (similar to CB-4648)
> Ref: http://cordova.apache.org/docs/en/3.0.0/cordova_file_file.md.html#FileWriter



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