Roo/bootstrap/Button.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:47:43 +0000 (15:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Feb 2014 07:47:43 +0000 (15:47 +0800)
Roo/bootstrap/Button.js

index fa7e149..0f22e36 100644 (file)
@@ -224,14 +224,12 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
        // Roo.log('init events?');
        // Roo.log(this.el.dom);
        if (this.el.hasClass('roo-button')) {
-            this.el.on('click', this.onClick, thi
+            this.el.on('click', this.onClick, this);
        } else {
             this.el.select('.roo-button').on('click', this.onClick, this);
        }
        
        
-       
-       //this.el.select('button',true).on('click', this.onClick, this);
         
     },
     onClick : function(e)