Skip to content
Permalink
Browse files

Slider: Inlining _step method, was used only once

  • Loading branch information
jzaefferer committed Mar 27, 2010
1 parent 3eee15f commit 39229962316ddeeaa19b2c725ee32d46c38e687c
Showing with 1 addition and 6 deletions.
  1. +1 −6 ui/jquery.ui.slider.js
@@ -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

0 comments on commit 3922996

Please sign in to comment.
You can’t perform that action at this time.