]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix unset var on foundation slider 8948/head
authorJason Raimondi <jason@raimondi.us>
Sun, 19 Jun 2016 03:37:34 +0000 (20:37 -0700)
committerJason Raimondi <jason@raimondi.us>
Sun, 19 Jun 2016 03:37:34 +0000 (20:37 -0700)
dist/foundation.js
dist/plugins/foundation.slider.js
js/foundation.slider.js

index 63b04ace2d90d27642897d06554070c0ba185cf3..94d64830eecb694d5309a54994243fa42b8e27d6 100644 (file)
@@ -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;
 
index 3cbc037480589dc0e85cc4e3a365ab4bcf9a636a..62fd383d568d8ed47111abd40366b789ceaed11b 100644 (file)
@@ -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;
 
index dec7b0a50781a3e12c6fa0dfc8a84314869f6a84..9fb8b9d3f636ee903efa7696265ab3a3e9f79730 100644 (file)
@@ -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;