Repository: cordova-plugin-vibration Updated Branches: refs/heads/jshint-fix [created] 15dc7eab7
fix jshint / double-varing 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/15dc7eab Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/15dc7eab Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/15dc7eab Branch: refs/heads/jshint-fix Commit: 15dc7eab719a80d6185a9b169474cbc2647cd3ce Parents: 4fc2aff Author: filmaj <[email protected]> Authored: Mon Apr 24 16:52:35 2017 -0700 Committer: filmaj <[email protected]> Committed: Mon Apr 24 16:55:05 2017 -0700 ---------------------------------------------------------------------- www/vibration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/15dc7eab/www/vibration.js ---------------------------------------------------------------------- diff --git a/www/vibration.js b/www/vibration.js index d663dc7..409be0b 100644 --- a/www/vibration.js +++ b/www/vibration.js @@ -108,7 +108,7 @@ module.exports = { */ vibrateWithPattern: function(pattern, repeat) { repeat = (typeof repeat !== "undefined") ? repeat : -1; - var pattern = pattern.unshift(0); //add a 0 at beginning for backwards compatibility from w3c spec + 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: [email protected] For additional commands, e-mail: [email protected]
