Peter created CB-4648: ------------------------- Summary: 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