cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [48/50] [abbrv] git commit: Docs typo: navigator.contacts.length -> contacts.length
Date Mon, 05 May 2014 16:10:35 GMT
Docs typo: navigator.contacts.length -> contacts.length

Signed-off-by: Shazron Abdullah <shazron@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/cdvtest
Commit: 55ba3f2580d2c3bbd1662f49d89043710446220a
Parents: e7d7d27
Author: huang.xinghui <huang.x.hui@gmail.com>
Authored: Thu Apr 10 14:53:33 2014 +0800
Committer: Shazron Abdullah <shazron@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" +


Mime
View raw message