r3561 committed - Button: button set should return original element for .widget() method...

r3561 committed - Button: button set should return original element for .widget() method...

Revision: 3561
Author: scott.gonzalez
Date: Wed Dec 30 10:08:28 2009
Log: Button: button set should return original element for .widget() method.
http://code.google.com/p/jquery-ui/source/detail?r=3561
Modified:
/branches/dev/ui/jquery.ui.button.js
=======================================
--- /branches/dev/ui/jquery.ui.button.js    Wed Dec 30 09:03:39 2009
+++ /branches/dev/ui/jquery.ui.button.js    Wed Dec 30 10:08:28 2009
@@ -15,9 +15,11 @@
/*
Todo:
-- disabling checkbox/radio (needs to add classes to this.buttonElement,
not this.element
- uncheck other radios when one is clicked
+Notes:
+- disabling a button set makes buttons very hard to see because they're
faded twice
+
Plan:
- button plugin
- button - full support
@@ -214,11 +216,6 @@
            .removeClass("ui-corner-left ui-corner-right");
        $.Widget.prototype.destroy.call(this);
-    },
-
-    widget: function() {
-        // TODO technically correct, but inconsistent
-        return this.buttons;
    }
});
--