You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by js...@apache.org on 2014/11/12 18:40:19 UTC

[1/2] cordova-plugin-contacts git commit: CB-7977 Mention deviceready in plugin docs

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/master e8fa35f44 -> 5272778a5


CB-7977 Mention deviceready in plugin docs


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/5272778a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/5272778a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/5272778a

Branch: refs/heads/master
Commit: 5272778a5ba055a568a675035317e4aad175345d
Parents: 99efc1f
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:09:06 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Wed Nov 12 12:38:17 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/5272778a/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index c297a4b..1f8b89b 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -19,7 +19,14 @@
 
 # org.apache.cordova.contacts
 
-Provides access to the device contacts database.
+This plugin defines a global `navigator.contacts` object, which provides access to the device contacts database.
+
+Although the object is attached to the global scoped `navigator`, it is not available until after the `deviceready` event.
+
+    document.addEventListener("deviceready", onDeviceReady, false);
+    function onDeviceReady() {
+        console.log(navigator.contacts);
+    }
 
 __WARNING__: Collection and use of contact data raises
 important privacy issues.  Your app's privacy policy should discuss


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/2] cordova-plugin-contacts git commit: Dropping trailing whitespace

Posted by js...@apache.org.
Dropping trailing whitespace


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/99efc1f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/99efc1f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/99efc1f9

Branch: refs/heads/master
Commit: 99efc1f9ebaa70aa872661d1039cd476e2562191
Parents: e8fa35f
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:08:51 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Wed Nov 12 12:38:17 2014 -0500

----------------------------------------------------------------------
 doc/index.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/99efc1f9/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index fe7c794..c297a4b 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -44,7 +44,7 @@ contact data.  For more information, please see the Privacy Guide.
 
 ### Firefox OS Quirks
 
-Create __www/manifest.webapp__ as described in 
+Create __www/manifest.webapp__ as described in
 [Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest).
 Add relevant permisions.
 There is also a need to change the webapp type to "privileged"  - [Manifest Docs](https://developer.mozilla.org/en-US/Apps/Developing/Manifest#type).
@@ -133,7 +133,7 @@ parameter to control which contact properties must be returned back.
 
 - __contactError__: Error callback function, invoked when an error occurs. [Optional]
 
-- __contactFindOptions__: Search options to filter navigator.contacts. [Optional] 
+- __contactFindOptions__: Search options to filter navigator.contacts. [Optional]
 	
 	Keys include:
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org