r2065 - trunk/ui
r2065 - trunk/ui
Author: paul.bakaus
Date: Wed Feb 11 05:04:18 2009
New Revision: 2065
Modified:
trunk/ui/ui.progressbar.js
Log:
progressbar: removed unused variables, some whitespace changes (fixes #4052)
Modified: trunk/ui/ui.progressbar.js
==============================================================================
--- trunk/ui/ui.progressbar.js (original)
+++ trunk/ui/ui.progressbar.js Wed Feb 11 05:04:18 2009
@@ -16,9 +16,6 @@
_init: function() {
- var self = this,
- options = this.options;
-
this.element
.addClass("ui-progressbar"
+ " ui-widget"
@@ -59,11 +56,11 @@
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.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;
},