X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fbootstrap%2FButton.js;h=038e3dbd7867ec110c31c82e5e8cf1422a0278e0;hb=d2ca26483858bec0e67fbad402fe83c23f73ce70;hp=24026e4ea435832504a584fc0411e47c8ddea0d4;hpb=cb9caaf54be3c09f463c208fcc9e21ca2f950426;p=roojs1 diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 24026e4ea4..038e3dbd78 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -309,9 +309,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { } if (this.pressed === true || this.pressed === false) { - this.pressed = !this.pressed; - this.el[this.pressed ? 'addClass' : 'removeClass']('active'); - this.fireEvent('toggle', this, e, this.pressed); + this.toggleActive(!this.pressed); }