cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-4664) FileWriter example code is incorrect
Date Mon, 26 Aug 2013 00:15:51 GMT
Peter created CB-4664:
-------------------------

             Summary: 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
    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 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