cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ldel...@apache.org
Subject [08/12] git commit: update doc to show vibrate([num]) is a standard vibrate
Date Thu, 07 Aug 2014 16:58:48 GMT
update doc to show vibrate([num]) is a standard vibrate


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

Branch: refs/heads/master
Commit: 47cfb7260505ee43243c81e8543d585eb04704db
Parents: 17441b7
Author: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Authored: Wed Jul 23 14:45:09 2014 -0400
Committer: Edna Morales <ednamorales@ednas-mbp-2.raleigh.ibm.com>
Committed: Wed Jul 23 14:45:09 2014 -0400

----------------------------------------------------------------------
 doc/index.md | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/47cfb726/doc/index.md
----------------------------------------------------------------------
diff --git a/doc/index.md b/doc/index.md
index 8a09c49..4535063 100644
--- a/doc/index.md
+++ b/doc/index.md
@@ -49,6 +49,10 @@ Vibrates the device for a given amount of time.
 
     navigator.vibrate(time)
 
+or
+
+    navigator.vibrate([time])
+
 -__time__: Milliseconds to vibrate the device. _(Number)_
 
 ####Example
@@ -56,6 +60,9 @@ Vibrates the device for a given amount of time.
     // Vibrate for 3 seconds
     navigator.vibrate(3000);
 
+    // Vibrate for 3 seconds
+    navigator.vibrate([3000]);
+
 ####iOS Quirks
 
 - __time__: Ignores the specified time and vibrates for a pre-set amount of time.
@@ -85,9 +92,6 @@ Vibrates the device with a given pattern.
     // Vibrate for 5 seconds
     navigator.vibrate([1000, 1000, 3000, 1000, 5000]);
 
-    // Vibrate for 5 seconds
-    navigator.vibrate([5000]);
-
 ###Cancel vibration (not supported in iOS)
 
 Immediately cancels any currently running vibration.


Mime
View raw message