diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-11 13:04:18 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-11 13:04:18 +0000 |
commit | 8bc04f67e33ae4ae59c740c5a9e68f6ba18f232c (patch) | |
tree | 87ace4f9444e22ef1790a0db4a15a02377cd962e /ui/ui.progressbar.js | |
parent | 7989bf1bee9d6c224909741bd92dd905f783a3d5 (diff) | |
download | jquery-ui-8bc04f67e33ae4ae59c740c5a9e68f6ba18f232c.tar.gz jquery-ui-8bc04f67e33ae4ae59c740c5a9e68f6ba18f232c.zip |
progressbar: removed unused variables, some whitespace changes (fixes #4052)
Diffstat (limited to 'ui/ui.progressbar.js')
-rw-r--r-- | ui/ui.progressbar.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index 47c8848f1..7138c269f 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -16,9 +16,6 @@ $.widget("ui.progressbar", { _init: function() { - var self = this, - options = this.options; - this.element .addClass("ui-progressbar" + " ui-widget" @@ -59,11 +56,11 @@ $.widget("ui.progressbar", { value: function(newValue) { arguments.length && this._setData("value", newValue); - return this._value(); }, - _setData: function(key, value){ + _setData: function(key, value) { + switch (key) { case 'value': this.options.value = value; @@ -73,25 +70,26 @@ $.widget("ui.progressbar", { } $.widget.prototype._setData.apply(this, arguments); + }, _value: function() { + var val = this.options.value; if (val < this._valueMin()) val = this._valueMin(); if (val > this._valueMax()) val = this._valueMax(); return val; + }, _valueMin: function() { var valueMin = 0; - return valueMin; }, _valueMax: function() { var valueMax = 100; - return valueMax; }, |