Replacing incorrect use of progress event error handler with file error handler in documentation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/4d92b361 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/4d92b361 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/4d92b361 Branch: refs/heads/master Commit: 4d92b36172408f2561d14c7f464df367d45314a0 Parents: 8fc9ea9 Author: Michal Mocny <mmo...@gmail.com> Authored: Thu Aug 16 11:37:31 2012 -0400 Committer: Anis Kadri <anis.ka...@gmail.com> Committed: Fri Aug 24 16:59:41 2012 -0700 ---------------------------------------------------------------------- .../en/2.0.0/cordova/file/filereader/filereader.md | 6 +++--- .../en/2.0.0/cordova/file/filesystem/filesystem.md | 4 ++-- .../file/localfilesystem/localfilesystem.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/4d92b361/docs/en/2.0.0/cordova/file/filereader/filereader.md ---------------------------------------------------------------------- diff --git a/docs/en/2.0.0/cordova/file/filereader/filereader.md b/docs/en/2.0.0/cordova/file/filereader/filereader.md index 2e9a8f1..7924917 100644 --- a/docs/en/2.0.0/cordova/file/filereader/filereader.md +++ b/docs/en/2.0.0/cordova/file/filereader/filereader.md @@ -179,8 +179,8 @@ Full Example reader.readAsText(file); } - function fail(evt) { - console.log(evt.target.error.code); + function fail(error) { + console.log(error.code); } </script> @@ -193,4 +193,4 @@ Full Example iOS Quirks ---------- -- __encoding__ parameter is not supported, UTF8 encoding is always used. \ No newline at end of file +- __encoding__ parameter is not supported, UTF8 encoding is always used. http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/4d92b361/docs/en/2.0.0/cordova/file/filesystem/filesystem.md ---------------------------------------------------------------------- diff --git a/docs/en/2.0.0/cordova/file/filesystem/filesystem.md b/docs/en/2.0.0/cordova/file/filesystem/filesystem.md index 74990fb..c916526 100644 --- a/docs/en/2.0.0/cordova/file/filesystem/filesystem.md +++ b/docs/en/2.0.0/cordova/file/filesystem/filesystem.md @@ -78,8 +78,8 @@ Full Example console.log(fileSystem.root.name); } - function fail(evt) { - console.log(evt.target.error.code); + function fail(error) { + console.log(error.code); } </script> http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/4d92b361/docs/en/2.0.0/cordova/file/localfilesystem/localfilesystem.md ---------------------------------------------------------------------- diff --git a/docs/en/2.0.0/cordova/file/localfilesystem/localfilesystem.md b/docs/en/2.0.0/cordova/file/localfilesystem/localfilesystem.md index 2828727..e31f7f1 100644 --- a/docs/en/2.0.0/cordova/file/localfilesystem/localfilesystem.md +++ b/docs/en/2.0.0/cordova/file/localfilesystem/localfilesystem.md @@ -97,8 +97,8 @@ Full Example console.log(fileEntry.name); } - function fail(evt) { - console.log(evt.target.error.code); + function fail(error) { + console.log(error.code); } </script>