Skip to content

Commit

Permalink
Slider: Inlining _step method, was used only once
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 27, 2010
1 parent 3eee15f commit 3922996
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ui/jquery.ui.slider.js
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3922996

Please sign in to comment.