Slider: Inlining _step method, was used only once

This commit is contained in:
jzaefferer 2010-03-27 01:47:42 +01:00
parent 3eee15fca8
commit 3922996231

View File

@ -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