From d2c5096222442263888935d43a8e8873791ae1d1 Mon Sep 17 00:00:00 2001 From: Jason Raimondi Date: Sat, 18 Jun 2016 20:37:34 -0700 Subject: [PATCH] fix unset var on foundation slider --- dist/foundation.js | 2 +- dist/plugins/foundation.slider.js | 2 +- js/foundation.slider.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/foundation.js b/dist/foundation.js index 63b04ace2d..94d64830ee 100644 --- a/dist/foundation.js +++ b/dist/foundation.js @@ -7272,7 +7272,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } else { barXY = eventFromBar; } - offsetPct = percent(barXY, barDim); + var offsetPct = percent(barXY, barDim); value = (this.options.end - this.options.start) * offsetPct + this.options.start; diff --git a/dist/plugins/foundation.slider.js b/dist/plugins/foundation.slider.js index 3cbc037480..62fd383d56 100644 --- a/dist/plugins/foundation.slider.js +++ b/dist/plugins/foundation.slider.js @@ -328,7 +328,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } else { barXY = eventFromBar; } - offsetPct = percent(barXY, barDim); + var offsetPct = percent(barXY, barDim); value = (this.options.end - this.options.start) * offsetPct + this.options.start; diff --git a/js/foundation.slider.js b/js/foundation.slider.js index dec7b0a507..9fb8b9d3f6 100644 --- a/js/foundation.slider.js +++ b/js/foundation.slider.js @@ -292,7 +292,7 @@ class Slider { } else { barXY = eventFromBar; } - offsetPct = percent(barXY, barDim); + var offsetPct = percent(barXY, barDim); value = (this.options.end - this.options.start) * offsetPct + this.options.start;