mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Buttonset - remove corner classes from button widgets instead of button elements on destroy. Fixes #5361 - buttonset method destroy doesn't remove corner classes from label elements
This commit is contained in:
parent
08a750a58f
commit
124f84635f
6
ui/jquery.ui.button.js
vendored
6
ui/jquery.ui.button.js
vendored
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user