aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.progressbar.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-16 02:09:45 +0000
commit8139c81d1b3521c8b8406a3c069c1c8829b05abe (patch)
tree1b1a3d259e4521916f7ec4d510ff5201f43d5ea7 /ui/ui.progressbar.js
parent78c4d87d7b2f9f8ece53f062eb44cabf9dd51bf3 (diff)
downloadjquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.tar.gz
jquery-ui-8139c81d1b3521c8b8406a3c069c1c8829b05abe.zip
Revert changes for #3838 for the release 1.6rc5
Diffstat (limited to 'ui/ui.progressbar.js')
-rw-r--r--ui/ui.progressbar.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js
index 82e6cca78..47c8848f1 100644
--- a/ui/ui.progressbar.js
+++ b/ui/ui.progressbar.js
@@ -12,15 +12,9 @@
*/
(function($) {
-var widgetName = "progressbar";
-var classWidgetName = ".progressbar";
-
$.widget("ui.progressbar", {
_init: function() {
- // update widgetName with the name given by the widget factory
- widgetName = this.widgetName;
- classWidgetName = '.' + widgetName;
var self = this,
options = this.options;
@@ -31,7 +25,7 @@ $.widget("ui.progressbar", {
+ " ui-widget-content"
+ " ui-corner-all")
.attr({
- role: widgetName,
+ role: "progressbar",
"aria-valuemin": this._valueMin(),
"aria-valuemax": this._valueMax(),
"aria-valuenow": this._value()
@@ -54,8 +48,8 @@ $.widget("ui.progressbar", {
.removeAttr("aria-valuemin")
.removeAttr("aria-valuemax")
.removeAttr("aria-valuenow")
- .removeData(widgetName)
- .unbind(classWidgetName);
+ .removeData("progressbar")
+ .unbind(".progressbar");
this.valueDiv.remove();