diff options
author | Richard Worth <rdworth@gmail.com> | 2010-03-17 13:03:23 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2010-03-17 13:03:23 +0000 |
commit | 124f84635f8f17a0af5085f64466050d1b0e263b (patch) | |
tree | 45924ae3c42bdeabaae253d5958e59d63bfb9119 /ui | |
parent | 08a750a58f7a362f844770265a74b2dfc3f34a3d (diff) | |
download | jquery-ui-124f84635f8f17a0af5085f64466050d1b0e263b.tar.gz jquery-ui-124f84635f8f17a0af5085f64466050d1b0e263b.zip |
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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.button.js | 6 |
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 ); } |