Repository: cordova-plugin-vibration Updated Branches: refs/heads/master 4fc2aff23 -> 168204b2e
CB-12695: 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/168204b2 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/tree/168204b2 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/diff/168204b2 Branch: refs/heads/master Commit: 168204b2eb9e91eb8beb08b560cc87c048ab1a74 Parents: 4fc2aff Author: filmaj <[email protected]> Authored: Mon Apr 24 16:52:35 2017 -0700 Committer: filmaj <[email protected]> Committed: Mon Apr 24 16:57:07 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/168204b2/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]
