cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject docs commit: [CB-1586] iOS Entry.setMetaData example is incorrect
Date Thu, 25 Oct 2012 19:26:40 GMT
Updated Branches:
  refs/heads/master 091d8e911 -> 421486bfa


[CB-1586] iOS Entry.setMetaData example is incorrect


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/421486bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/421486bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/421486bf

Branch: refs/heads/master
Commit: 421486bfabb0e6e1b14e505e2c578c7e3430a2bc
Parents: 091d8e9
Author: Shazron Abdullah <shazron@apache.org>
Authored: Thu Oct 25 12:26:37 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Thu Oct 25 12:26:37 2012 -0700

----------------------------------------------------------------------
 .../cordova/file/directoryentry/directoryentry.md  |    4 +++-
 .../2.2.0rc1/cordova/file/fileentry/fileentry.md   |    4 +++-
 .../cordova/file/directoryentry/directoryentry.md  |    4 +++-
 docs/en/edge/cordova/file/fileentry/fileentry.md   |    4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/421486bf/docs/en/2.2.0rc1/cordova/file/directoryentry/directoryentry.md
----------------------------------------------------------------------
diff --git a/docs/en/2.2.0rc1/cordova/file/directoryentry/directoryentry.md b/docs/en/2.2.0rc1/cordova/file/directoryentry/directoryentry.md
index 1726beb..f2c20cb 100644
--- a/docs/en/2.2.0rc1/cordova/file/directoryentry/directoryentry.md
+++ b/docs/en/2.2.0rc1/cordova/file/directoryentry/directoryentry.md
@@ -125,7 +125,9 @@ __Quick Example__
         }
 
 	    var onGetDirectoryWin = function(parent) {
-	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue});
+	      var data = {};
+	      data[metadataKey] = metadataValue;
+	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, data);
 	    }
 	    var onGetDirectoryFail = function() {
 	      console.log("error getting dir")

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/421486bf/docs/en/2.2.0rc1/cordova/file/fileentry/fileentry.md
----------------------------------------------------------------------
diff --git a/docs/en/2.2.0rc1/cordova/file/fileentry/fileentry.md b/docs/en/2.2.0rc1/cordova/file/fileentry/fileentry.md
index 4137ba9..a8b0e2c 100644
--- a/docs/en/2.2.0rc1/cordova/file/fileentry/fileentry.md
+++ b/docs/en/2.2.0rc1/cordova/file/fileentry/fileentry.md
@@ -124,7 +124,9 @@ __Quick Example__
         }
 
 	    var onGetFileWin = function(parent) {
-	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue});
+	      var data = {};
+	      data[metadataKey] = metadataValue;
+	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, data);
 	    }
 	    var onGetFileFail = function() {
 	      console.log("error getting file")

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/421486bf/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 1726beb..f2c20cb 100644
--- a/docs/en/edge/cordova/file/directoryentry/directoryentry.md
+++ b/docs/en/edge/cordova/file/directoryentry/directoryentry.md
@@ -125,7 +125,9 @@ __Quick Example__
         }
 
 	    var onGetDirectoryWin = function(parent) {
-	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue});
+	      var data = {};
+	      data[metadataKey] = metadataValue;
+	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, data);
 	    }
 	    var onGetDirectoryFail = function() {
 	      console.log("error getting dir")

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/421486bf/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 4137ba9..a8b0e2c 100644
--- a/docs/en/edge/cordova/file/fileentry/fileentry.md
+++ b/docs/en/edge/cordova/file/fileentry/fileentry.md
@@ -124,7 +124,9 @@ __Quick Example__
         }
 
 	    var onGetFileWin = function(parent) {
-	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue});
+	      var data = {};
+	      data[metadataKey] = metadataValue;
+	      parent.setMetadata(onSetMetadataWin, onSetMetadataFail, data);
 	    }
 	    var onGetFileFail = function() {
 	      console.log("error getting file")


Mime
View raw message