]> source.dussan.org Git - jquery-ui.git/commitdiff
Buttonset - remove corner classes from button widgets instead of button elements...
authorRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 13:03:23 +0000 (13:03 +0000)
committerRichard Worth <rdworth@gmail.com>
Wed, 17 Mar 2010 13:03:23 +0000 (13:03 +0000)
ui/jquery.ui.button.js

index 33534b88a3249d2c807f75cf3206f85d5fe1baab..bb9aa4802bede1218126d3dcb715a17214c41bd1 100644 (file)
@@ -338,8 +338,12 @@ $.widget( "ui.buttonset", {
        destroy: function() {
                this.element.removeClass( "ui-button-set" );
                this.buttons
+                       .map(function() {
+                               return $( this ).button( "widget" )[ 0 ];
+                       })
+                               .removeClass( "ui-corner-left ui-corner-right" )
+                       .end()
                        .button( "destroy" )
-                       .removeClass( "ui-corner-left ui-corner-right" );
 
                $.Widget.prototype.destroy.call( this );
        }