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 3922996
Showing 1 changed file with 1 addition and 6 deletions.
@@ -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.