aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-22 13:10:18 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-22 13:10:18 +0000
commit1b891501f2c5e7e6f99839121e210aa38557dad6 (patch)
treeb2d363803bdc8fdc2406b1425ebe9a6e8af6269a /ui/ui.slider.js
parent6b80dc29c8a888029f71edb73aee4e166f54214b (diff)
downloadjquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.tar.gz
jquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.zip
whitespace
Diffstat (limited to 'ui/ui.slider.js')
-rw-r--r--ui/ui.slider.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/ui.slider.js b/ui/ui.slider.js
index 24c6bff58..199932a29 100644
--- a/ui/ui.slider.js
+++ b/ui/ui.slider.js
@@ -34,7 +34,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
this.range = $([]);
if (o.range) {
-
+
if (o.range === true) {
this.range = $('<div></div>');
if (!o.values) o.values = [this._valueMin(), this._valueMin()];
@@ -54,7 +54,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
(o.range == "max") && (this.orientation == "horizontal") && this.range.css({ right : 0 });
(o.range == "min") && (this.orientation == "vertical") && this.range.css({ bottom : 0 });
(o.range == "max") && (this.orientation == "vertical") && this.range.css({ top : 0 });
-
+
}
if ($(".ui-slider-handle", this.element).length == 0)
@@ -213,25 +213,25 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
},
_mouseDrag: function(event) {
-
+
var position = { x: event.pageX, y: event.pageY };
var normValue = this._normValueFromMouse(position);
this._slide(event, this._handleIndex, normValue);
return false;
-
+
},
_mouseStop: function(event) {
-
+
this.handles.removeClass("ui-state-active");
this._stop(event);
this._change(event);
this._handleIndex = null;
return false;
-
+
},
_normValueFromMouse: function(position) {
@@ -260,7 +260,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
normValue += this.options.step;
return normValue;
-
+
},
_start: function(event) {
@@ -270,7 +270,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
},
_slide: function(event, index, newVal) {
-
+
var handle = this.handles[index];
if (this.options.values && this.options.values.length) {