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:47:36 UTC
[1/2] cordova-plugin-vibration git commit: Add comma to match a later
section
Repository: cordova-plugin-vibration
Updated Branches:
refs/heads/master 5b6032b4f -> a520f0de0
Add comma to match a later section
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/1282468c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/1282468c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/1282468c
Branch: refs/heads/master
Commit: 1282468c09c5d9b4a676feae5604c9ea3602aa20
Parents: 5b6032b
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:21:19 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:21:19 2014 -0500
----------------------------------------------------------------------
doc/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/1282468c/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 57b4a0b..2ef61d5 100755
--- a/doc/index.md
+++ b/doc/index.md
@@ -29,7 +29,7 @@ This plugin provides a way to vibrate the device.
## Supported Platforms
-navigator.vibrate<br />
+navigator.vibrate,<br />
navigator.notification.vibrate
- Amazon Fire OS
- Android
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/2] cordova-plugin-vibration git commit: CB-7977 Mention
deviceready in plugin docs
Posted by js...@apache.org.
CB-7977 Mention deviceready in plugin docs
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/commit/a520f0de
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/a520f0de
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/a520f0de
Branch: refs/heads/master
Commit: a520f0de030a217868dcf409bf9612defe20170f
Parents: 1282468
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Nov 6 17:21:27 2014 -0500
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Nov 6 17:21:27 2014 -0500
----------------------------------------------------------------------
doc/index.md | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/a520f0de/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 2ef61d5..af360b9 100755
--- a/doc/index.md
+++ b/doc/index.md
@@ -23,6 +23,15 @@ This plugin aligns with the W3C vibration specification http://www.w3.org/TR/vib
This plugin provides a way to vibrate the device.
+This plugin defines global objects including `navigator.vibrate`.
+
+Although in the global scope, they are not available until after the `deviceready` event.
+
+ document.addEventListener("deviceready", onDeviceReady, false);
+ function onDeviceReady() {
+ console.log(navigator.vibrate);
+ }
+
## Installation
cordova plugin add org.apache.cordova.vibration
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org