You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/25 20:12:19 UTC
[2/2] git commit: Docs typo: navigator.contacts.length ->
contacts.length
Docs typo: navigator.contacts.length -> contacts.length
Signed-off-by: Shazron Abdullah <sh...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/55ba3f25
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/55ba3f25
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/55ba3f25
Branch: refs/heads/master
Commit: 55ba3f2580d2c3bbd1662f49d89043710446220a
Parents: e7d7d27
Author: huang.xinghui <hu...@gmail.com>
Authored: Thu Apr 10 14:53:33 2014 +0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Apr 21 17:15:41 2014 -0700
----------------------------------------------------------------------
doc/index.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/55ba3f25/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index f21e907..83f5a30 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -353,7 +353,7 @@ a `ContactAddress[]` array.
// display the address information for all contacts
function onSuccess(contacts) {
- for (var i = 0; i < navigator.contacts.length; i++) {
+ for (var i = 0; i < contacts.length; i++) {
for (var j = 0; j < contacts[i].addresses.length; j++) {
alert("Pref: " + contacts[i].addresses[j].pref + "\n" +
"Type: " + contacts[i].addresses[j].type + "\n" +
@@ -537,7 +537,7 @@ Contains different kinds of information about a `Contact` object's name.
### Example
function onSuccess(contacts) {
- for (var i = 0; i < navigator.contacts.length; i++) {
+ for (var i = 0; i < contacts.length; i++) {
alert("Formatted: " + contacts[i].name.formatted + "\n" +
"Family Name: " + contacts[i].name.familyName + "\n" +
"Given Name: " + contacts[i].name.givenName + "\n" +
@@ -628,7 +628,7 @@ properties. A `Contact` object stores one or more
### Example
function onSuccess(contacts) {
- for (var i = 0; i < navigator.contacts.length; i++) {
+ for (var i = 0; i < contacts.length; i++) {
for (var j = 0; j < contacts[i].organizations.length; j++) {
alert("Pref: " + contacts[i].organizations[j].pref + "\n" +
"Type: " + contacts[i].organizations[j].type + "\n" +