cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [5/6] cordova-plugin-vibration git commit: fix(vibrateWithPattern): function doesn't update the pattern variable reference
Date Fri, 03 Mar 2017 00:49:36 GMT
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/0dc6c0f2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/0dc6c0f2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/0dc6c0f2

Branch: refs/heads/2.1.x
Commit: 0dc6c0f21748b32f8f1c5870fc9c9b9f1cd14a62
Parents: 7cdfab7
Author: Simon MAHÉ <mahe.simon@gmail.com>
Authored: Thu Mar 17 11:07:23 2016 +0100
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Mar 2 16:49:08 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/0dc6c0f2/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