Skip to content
Permalink
Browse files

Buttonset - remove corner classes from button widgets instead of butt…

…on elements on destroy. Fixes #5361 - buttonset method destroy doesn't remove corner classes from label elements
  • Loading branch information...
rdworth committed Mar 17, 2010
1 parent 08a750a commit 124f84635f8f17a0af5085f64466050d1b0e263b
Showing with 5 additions and 1 deletion.
  1. +5 −1 ui/jquery.ui.button.js
@@ -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 );
}

0 comments on commit 124f846

Please sign in to comment.
You can’t perform that action at this time.