From 39229962316ddeeaa19b2c725ee32d46c38e687c Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Sat, 27 Mar 2010 01:47:42 +0100 Subject: [PATCH] Slider: Inlining _step method, was used only once --- ui/jquery.ui.slider.js | 7 +------ 1 file changed, 1 insertion(+), 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