r3517 committed - Update progressbar for new widget factory.

r3517 committed - Update progressbar for new widget factory.

Revision: 3517
Author: scott.gonzalez
Date: Tue Dec 22 19:59:41 2009
Log: Update progressbar for new widget factory.
http://code.google.com/p/jquery-ui/source/detail?r=3517
Modified:
/branches/dev/ui/jquery.ui.progressbar.js
=======================================
--- /branches/dev/ui/jquery.ui.progressbar.js    Wed Dec 16 17:44:16 2009
+++ /branches/dev/ui/jquery.ui.progressbar.js    Tue Dec 22 19:59:41 2009
@@ -14,7 +14,9 @@
(function($) {
$.widget("ui.progressbar", {
-
+    options: {
+        value: 0
+    },
    _init: function() {
        this.element
@@ -61,11 +63,11 @@
            return this._value();
        }
-        this._setData('value', newValue);
+        this._setOption('value', newValue);
        return this;
    },
-    _setData: function(key, value) {
+    _setOption: function(key, value) {
        switch (key) {
            case 'value':
@@ -75,7 +77,7 @@
                break;
        }
-        $.widget.prototype._setData.apply(this, arguments);
+        $.widget.prototype._setOption.apply(this, arguments);
    },
@@ -111,10 +113,7 @@
});
$.extend($.ui.progressbar, {
-    version: "@VERSION",
-    defaults: {
-        value: 0
-    }
+    version: "@VERSION"
});
})(jQuery);
--