Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Tue, 1 Apr 2014 10:58:58 +0000 (18:58 +0800)
committerEdward <edward@roojs.com>
Tue, 1 Apr 2014 10:58:58 +0000 (18:58 +0800)
Roo/bootstrap/Button.js

index 334b071..9f1aba6 100644 (file)
@@ -65,6 +65,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     offtext: 'OFF',
     defaulton: true,
     preventDefault : true,
+    removeClass : false,
     
     getAutoCreate : function(){
         
@@ -230,6 +231,10 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             cfg.href = this.href;
         }
         
+        if(this.removeClass){
+            cfg.cls = '';
+        }
+        
         return cfg;
     },
     initEvents: function() {