aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.slider.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-27 01:47:42 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-27 01:47:42 +0100
commit39229962316ddeeaa19b2c725ee32d46c38e687c (patch)
tree9486fabcc6aec6604255630751619647a9258605 /ui/jquery.ui.slider.js
parent3eee15fca88215446f5036e8fc2c965f5345a3c2 (diff)
downloadjquery-ui-39229962316ddeeaa19b2c725ee32d46c38e687c.tar.gz
jquery-ui-39229962316ddeeaa19b2c725ee32d46c38e687c.zip
Slider: Inlining _step method, was used only once
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r--ui/jquery.ui.slider.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index c392facd7..f0cc2ace1 100644
--- a/ui/jquery.ui.slider.js
+++ b/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