aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r--ui/jquery.ui.button.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index 33534b88a..bb9aa4802 100644
--- a/ui/jquery.ui.button.js
+++ b/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 );
}