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