Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 04:55:37 +0000 (12:55 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 04:55:37 +0000 (12:55 +0800)
Roo/bootstrap/Button.js

index 2f892c3..fc5b4bd 100644 (file)
@@ -281,7 +281,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
         }
         if (this.pressed === true || this.pressed === false) {
             this.pressed = !this.pressed;
-            this[this.pressed ? 'addClass' : 'removeClass']('active');
+            this.el[this.pressed ? 'addClass' : 'removeClass']('active');
             this.fireEvent('toggle', this, e, this.pressed);
         }