From 93f3971fd63e69bdb714647e3cbba90077821453 Mon Sep 17 00:00:00 2001 From: "Steven D. Lander" Date: Sun, 13 Oct 2019 19:32:30 -0400 Subject: [PATCH] Removing noInvert from _setHandlePos() --- js/foundation.slider.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/foundation.slider.js b/js/foundation.slider.js index bc340fbba..26250560c 100644 --- a/js/foundation.slider.js +++ b/js/foundation.slider.js @@ -108,11 +108,11 @@ class Slider extends Plugin { setHandles() { if(this.handles[1]) { - this._setHandlePos(this.$handle, this.inputs.eq(0).val(), true, () => { - this._setHandlePos(this.$handle2, this.inputs.eq(1).val(), true); + this._setHandlePos(this.$handle, this.inputs.eq(0).val(), () => { + this._setHandlePos(this.$handle2, this.inputs.eq(1).val()); }); } else { - this._setHandlePos(this.$handle, this.inputs.eq(0).val(), true); + this._setHandlePos(this.$handle, this.inputs.eq(0).val()); } } @@ -194,7 +194,7 @@ class Slider extends Plugin { * @fires Slider#moved * @fires Slider#changed */ - _setHandlePos($hndl, location, noInvert, cb) { + _setHandlePos($hndl, location, cb) { // don't move if the slider has been disabled since its initialization if (this.$element.hasClass(this.options.disabledClass)) { return; @@ -407,7 +407,7 @@ class Slider extends Plugin { hasVal = true; } - this._setHandlePos($handle, value, hasVal); + this._setHandlePos($handle, value); } /** @@ -555,7 +555,7 @@ class Slider extends Plugin { }, handled: function() { // only set handle pos when event was handled specially e.preventDefault(); - _this._setHandlePos(_$handle, newValue, true); + _this._setHandlePos(_$handle, newValue); } }); /*if (newValue) { // if pressed key has special function, update value -- 2.47.2