Roo/bootstrap/Button.js
authorbenny <benny@roojs.com>
Fri, 20 Jul 2018 08:08:09 +0000 (16:08 +0800)
committerbenny <benny@roojs.com>
Fri, 20 Jul 2018 08:08:09 +0000 (16:08 +0800)
Roo/bootstrap/Button.js

index d44f52b..6dcdf58 100644 (file)
@@ -50,14 +50,14 @@ Roo.bootstrap.Button = function(config){
         /**
          * @event click
          * When a butotn is pressed
-         * @param {Roo.bootstrap.Button} this
+         * @param {Roo.bootstrap.Button} btn
          * @param {Roo.EventObject} e
          */
         "click" : true,
          /**
          * @event toggle
          * After the button has been toggles
-         * @param {Roo.bootstrap.Button} this
+         * @param {Roo.bootstrap.Button} btn
          * @param {Roo.EventObject} e
          * @param {boolean} pressed (also available as button.pressed)
          */
@@ -342,6 +342,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     setActive : function(v) {
         
         this.el[v ? 'addClass' : 'removeClass']('active');
+        this.pressed = v;
     },
      /**
      * toggles the current active state