Permalink
Browse files

Added `SplitButton` "show" class when contents is shown

  • Loading branch information...
tj committed Feb 23, 2012
1 parent 75e6cf9 commit 9d337bda7fa76107f535d78e8f22d10b1af663a4
Showing with 4 additions and 0 deletions.
  1. +2 −0 build/ui.js
  2. +2 −0 lib/components/split-button/split-button.js
View
@@ -1226,6 +1226,7 @@ SplitButton.prototype.toggle = function(){
SplitButton.prototype.show = function(){
this.state = 'visible';
this.emit('show');
+ this.el.addClass('show');
return this;
};
@@ -1239,6 +1240,7 @@ SplitButton.prototype.show = function(){
SplitButton.prototype.hide = function(){
this.state = 'hidden';
this.emit('hide');
+ this.el.removeClass('show');
return this;
};
@@ -71,6 +71,7 @@ SplitButton.prototype.toggle = function(){
SplitButton.prototype.show = function(){
this.state = 'visible';
this.emit('show');
+ this.el.addClass('show');
return this;
};
@@ -84,6 +85,7 @@ SplitButton.prototype.show = function(){
SplitButton.prototype.hide = function(){
this.state = 'hidden';
this.emit('hide');
+ this.el.removeClass('show');
return this;
};

0 comments on commit 9d337bd

Please sign in to comment.