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());
}
}
* @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;
hasVal = true;
}
- this._setHandlePos($handle, value, hasVal);
+ this._setHandlePos($handle, value);
}
/**
},
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