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

index 38ea2fe..ff7ef6c 100644 (file)
@@ -59,7 +59,11 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     
     getAutoCreate : function(){
         
-        var cfg={};
+        var cfg = {
+            cls: '',
+            tag : 'button',
+            html: 'hello'
+        }
         
         if (this.toggle===true) {
             cfg={
@@ -92,11 +96,6 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             
             return cfg;
         }
-        var cfg = {
-            cls: '',
-            tag : 'button',
-            html: 'hello'
-        }
         
         
         if (this.parent().btn&&this.parent().type=='ButtonGroup') {