mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Inlining _step method, was used only once
This commit is contained in:
parent
3eee15fca8
commit
3922996231
7
ui/jquery.ui.slider.js
vendored
7
ui/jquery.ui.slider.js
vendored
@ -152,7 +152,7 @@ $.widget("ui.slider", $.ui.mouse, {
|
||||
break;
|
||||
}
|
||||
|
||||
var curVal, newVal, step = self._step();
|
||||
var curVal, newVal, step = self.options.step;
|
||||
if (self.options.values && self.options.values.length) {
|
||||
curVal = newVal = self.values(index);
|
||||
} else {
|
||||
@ -526,11 +526,6 @@ $.widget("ui.slider", $.ui.mouse, {
|
||||
|
||||
},
|
||||
|
||||
_step: function() {
|
||||
var step = this.options.step;
|
||||
return step;
|
||||
},
|
||||
|
||||
_value: function() {
|
||||
//internal value getter
|
||||
// _value() returns value trimmed by min and max
|
||||
|
Loading…
Reference in New Issue
Block a user