github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 250
    • 28
  • Source
  • Commits
  • Network (28)
  • Graphs
  • Tree: 124f846

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

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
rdworth (author)
Wed Mar 17 06:03:23 -0700 2010
commit  124f84635f8f17a0af5085f64466050d1b0e263b
tree    45924ae3c42bdeabaae253d5958e59d63bfb9119
parent  08a750a58f7a362f844770265a74b2dfc3f34a3d
M ui/jquery.ui.button.js 6 ••••
Txt ui/jquery.ui.button.js
  • View file @ 124f846
... ...
@@ -338,8 +338,12 @@ $.widget( "ui.buttonset", {
338 338
   destroy: function() {
339 339
     this.element.removeClass( "ui-button-set" );
340 340
     this.buttons
  341
+      .map(function() {
  342
+        return $( this ).button( "widget" )[ 0 ];
  343
+      })
  344
+        .removeClass( "ui-corner-left ui-corner-right" )
  345
+      .end()
341 346
       .button( "destroy" )
342  
-      .removeClass( "ui-corner-left ui-corner-right" );
343 347
 
344 348
     $.Widget.prototype.destroy.call( this );
345 349
   }

0 notes on commit 124f846

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server