*/
setPressed : function(state)
{
-
- if(state != this.pressed){
+ if(state != this.pressed){
if(state){
this.el.addClass("x-btn-pressed");
this.pressed = true;
this.pressed = false;
}
}
- }
+ },
/**
* If a state it passed, it becomes the pressed state otherwise the current state is toggled.