cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-plugin-vibration git commit: fix(vibrateWithPattern): function doesn't update the pattern variable reference
Date Wed, 22 Feb 2017 06:50:09 GMT
Repository: cordova-plugin-vibration
Updated Branches:
  refs/heads/master a109a8240 -> 92bf1132b


fix(vibrateWithPattern): function doesn't update the pattern variable reference

 This closes #45


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

Branch: refs/heads/master
Commit: 92bf1132b31ccbc247921020c38c05e3d02af9e3
Parents: a109a82
Author: Simon MAHÉ <mahe.simon@gmail.com>
Authored: Thu Mar 17 11:07:23 2016 +0100
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Tue Feb 21 22:49:56 2017 -0800

----------------------------------------------------------------------
 www/vibration.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/92bf1132/www/vibration.js
----------------------------------------------------------------------
diff --git a/www/vibration.js b/www/vibration.js
index 122c74d..d663dc7 100644
--- a/www/vibration.js
+++ b/www/vibration.js
@@ -53,7 +53,7 @@ module.exports = {
     vibrate: function(param) {
 
         /* Aligning with w3c spec */
-        
+
         //vibrate
         if ((typeof param == 'number') && param !== 0)
             exec(null, null, "Vibration", "vibrate", [param]);
@@ -108,7 +108,7 @@ module.exports = {
      */
     vibrateWithPattern: function(pattern, repeat) {
         repeat = (typeof repeat !== "undefined") ? repeat : -1;
-        pattern.unshift(0); //add a 0 at beginning for backwards compatibility from w3c spec
+        var pattern = pattern.unshift(0); //add a 0 at beginning for backwards compatibility
from w3c spec
         exec(null, null, "Vibration", "vibrateWithPattern", [pattern, repeat]);
     },
 


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


Mime
View raw message