cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject docs commit: Appropriate FileError syntax for FileAPI
Date Thu, 28 Nov 2013 18:49:17 GMT
Updated Branches:
  refs/heads/master 3c1097045 -> ac70a41f8


Appropriate FileError syntax for FileAPI


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/ac70a41f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/ac70a41f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/ac70a41f

Branch: refs/heads/master
Commit: ac70a41f8317b22f36583b0af51651dd3ab1484c
Parents: 3c10970
Author: Simon Males <sime@sime.net.au>
Authored: Wed Nov 27 09:30:54 2013 +0800
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Thu Nov 28 10:49:05 2013 -0800

----------------------------------------------------------------------
 docs/en/edge/cordova/file/directoryentry/directoryentry.md   | 4 ++--
 docs/en/edge/cordova/file/fileentry/fileentry.md             | 4 ++--
 docs/en/edge/cordova/file/filesystem/filesystem.md           | 4 ++--
 docs/en/edge/cordova/file/localfilesystem/localfilesystem.md | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ac70a41f/docs/en/edge/cordova/file/directoryentry/directoryentry.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/directoryentry/directoryentry.md b/docs/en/edge/cordova/file/directoryentry/directoryentry.md
index f17be4f..3cb9972 100644
--- a/docs/en/edge/cordova/file/directoryentry/directoryentry.md
+++ b/docs/en/edge/cordova/file/directoryentry/directoryentry.md
@@ -150,8 +150,8 @@ __Quick Example__
             fileSystem.root.getDirectory(subFolder, {create: true, exclusive: false}, onGetDirectoryWin,
onGetDirectoryFail);
         }
 
-        var onFSFail = function(evt) {
-            console.log(evt.target.error.code);
+        var onFSFail = function(error) {
+            console.log(error.code);
         }
 
         window.requestFileSystem(localFileSystem, 0, onFSWin, onFSFail);

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ac70a41f/docs/en/edge/cordova/file/fileentry/fileentry.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/fileentry/fileentry.md b/docs/en/edge/cordova/file/fileentry/fileentry.md
index f9da028..29e32d4 100644
--- a/docs/en/edge/cordova/file/fileentry/fileentry.md
+++ b/docs/en/edge/cordova/file/fileentry/fileentry.md
@@ -147,8 +147,8 @@ __Quick Example__
             fileSystem.root.getFile(filePath, {create: true, exclusive: false}, onGetFileWin,
onGetFileFail);
         }
 
-        var onFSFail = function(evt) {
-            console.log(evt.target.error.code);
+        var onFSFail = function(error) {
+            console.log(error.code);
         }
 
         window.requestFileSystem(localFileSystem, 0, onFSWin, onFSFail);

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/ac70a41f/docs/en/edge/cordova/file/filesystem/filesystem.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/filesystem/filesystem.md b/docs/en/edge/cordova/file/filesystem/filesystem.md
index e0b0fab..09b8dc6 100644
--- a/docs/en/edge/cordova/file/filesystem/filesystem.md
+++ b/docs/en/edge/cordova/file/filesystem/filesystem.md
@@ -78,8 +78,8 @@ that represents the file system's root directory.
             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/cordova-docs/blob/ac70a41f/docs/en/edge/cordova/file/localfilesystem/localfilesystem.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/localfilesystem/localfilesystem.md b/docs/en/edge/cordova/file/localfilesystem/localfilesystem.md
index ae733f1..a0ce6fe 100644
--- a/docs/en/edge/cordova/file/localfilesystem/localfilesystem.md
+++ b/docs/en/edge/cordova/file/localfilesystem/localfilesystem.md
@@ -92,8 +92,8 @@ The `LocalFileSystem` object methods are defined on the `window` object.
             console.log(fileEntry.name);
         }
 
-        function fail(evt) {
-            console.log(evt.target.error.code);
+        function fail(error) {
+            console.log(error.code);
         }
 
         </script>


Mime
View raw message