r3042 committed - - remove left border of buttons (all but first) inside buttonset

r3042 committed - - remove left border of buttons (all but first) inside buttonset


Revision: 3042
Author: malk0.phpgtk
Date: Sun Aug 9 12:12:26 2009
Log: - remove left border of buttons (all but first) inside buttonset
http://code.google.com/p/jquery-ui/source/detail?r=3042
Modified:
/branches/labs/button/ui.buttonset.js
=======================================
--- /branches/labs/button/ui.buttonset.js    Sun Aug 9 11:14:17 2009
+++ /branches/labs/button/ui.buttonset.js    Sun Aug 9 12:12:26 2009
@@ -39,10 +39,14 @@
        propagateSettings:function(){
            var self=this;
            self.element.contents().each(function(){
+                var elmt=$(this);
                if( this.nodeType!=1 || ! this.tagName){
-                    return $(this).remove();
-                }
-                $(this).button().button('importButtonSetSettings',self);
+                    return elmt.remove();
+                }
+                elmt.button().button('importButtonSetSettings',self);
+                if(! elmt.is(':first-child')){
+                    elmt.css({borderLeftWidth:'0px'});
+                }
            })
        },
        _setData:function(key,value){