aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.slider.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 14:24:02 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 14:24:02 +0000
commit620ed3329559fd3641ef27c15b0c03632ca34ca0 (patch)
tree5a4c7b25736d184a669c349e5e5dfc0d45d65386 /ui/source/ui.slider.js
parenta4aa144c3bc3208f6873484c7fce180f5e5e151e (diff)
downloadjquery-ui-620ed3329559fd3641ef27c15b0c03632ca34ca0.tar.gz
jquery-ui-620ed3329559fd3641ef27c15b0c03632ca34ca0.zip
resizable,selectable,slider: changed this.disabled to this.options.disabled (fixes #2552)
Diffstat (limited to 'ui/source/ui.slider.js')
-rw-r--r--ui/source/ui.slider.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/source/ui.slider.js b/ui/source/ui.slider.js
index a15c917dd..87c1572fb 100644
--- a/ui/source/ui.slider.js
+++ b/ui/source/ui.slider.js
@@ -49,11 +49,11 @@
},
enable: function() {
this.element.removeClass("ui-slider-disabled");
- this.disabled = false;
+ this.options.disabled = false;
},
disable: function() {
this.element.addClass("ui-slider-disabled");
- this.disabled = true;
+ this.options.disabled = true;
},
setData: function(key, value) {
this.options[key] = value;
@@ -162,7 +162,7 @@
if(this == e.target)
clickedHandle = true;
});
- if (clickedHandle || this.disabled || !(this.currentHandle || this.previousHandle))
+ if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))
return;
// If a previous handle was focussed, focus it again
@@ -270,10 +270,10 @@
this.propagate('start', e);
- if(!this.disabled) {
+ if(!this.options.disabled) {
if(this.currentHandle) this.blur(this.currentHandle);
this.focus(handle,1);
- return !this.disabled;
+ return !this.options.disabled;
}
},
mouseDrag: function(e) {