Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Fri, 28 Mar 2014 11:34:36 +0000 (19:34 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Mar 2014 11:34:36 +0000 (19:34 +0800)
Roo/bootstrap/Button.js

index f936aab..29d9292 100644 (file)
@@ -235,13 +235,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     onClick : function(e)
     {
         Roo.log('button on click ');
-        
-        this.fireEvent('click', this, e);
-        
         if(this.tag !== 'a' || this.href === ''){
             e.preventDefault();
         }
-        
+        this.fireEvent('click', this, e);
     }