Roo/bootstrap/Button.js
authorJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:50:30 +0000 (15:50 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:50:30 +0000 (15:50 +0800)
Roo/bootstrap/Button.js

index 1505dea..cd3eb3f 100644 (file)
@@ -81,8 +81,7 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             };
             
             if (['default', 'primary', 'success', 'info', 'warning', 'danger', 'link'].indexOf(this.weight) > -1) {
-                
-                cfg.cn[0].cls += this.weight;
+                cfg.cls += this.weight;
             }
             
             return cfg;