progressbar: removed unused variables, some whitespace changes (fixes #4052)

This commit is contained in:
Paul Bakaus 2009-02-11 13:04:18 +00:00
parent 7989bf1bee
commit 8bc04f67e3

View File

@ -16,9 +16,6 @@ $.widget("ui.progressbar", {
_init: function() { _init: function() {
var self = this,
options = this.options;
this.element this.element
.addClass("ui-progressbar" .addClass("ui-progressbar"
+ " ui-widget" + " ui-widget"
@ -59,11 +56,11 @@ $.widget("ui.progressbar", {
value: function(newValue) { value: function(newValue) {
arguments.length && this._setData("value", newValue); arguments.length && this._setData("value", newValue);
return this._value(); return this._value();
}, },
_setData: function(key, value){ _setData: function(key, value) {
switch (key) { switch (key) {
case 'value': case 'value':
this.options.value = value; this.options.value = value;
@ -73,25 +70,26 @@ $.widget("ui.progressbar", {
} }
$.widget.prototype._setData.apply(this, arguments); $.widget.prototype._setData.apply(this, arguments);
}, },
_value: function() { _value: function() {
var val = this.options.value; var val = this.options.value;
if (val < this._valueMin()) val = this._valueMin(); if (val < this._valueMin()) val = this._valueMin();
if (val > this._valueMax()) val = this._valueMax(); if (val > this._valueMax()) val = this._valueMax();
return val; return val;
}, },
_valueMin: function() { _valueMin: function() {
var valueMin = 0; var valueMin = 0;
return valueMin; return valueMin;
}, },
_valueMax: function() { _valueMax: function() {
var valueMax = 100; var valueMax = 100;
return valueMax; return valueMax;
}, },