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

index 0e27708..25da093 100644 (file)
@@ -58,11 +58,6 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     defaulton: true,
     
     getAutoCreate : function(){
-        var cfg = {
-            cls: '',
-            tag : 'button',
-            html: 'hello'
-        }
         
         if (this.toggle===true) {
             cfg={
@@ -95,6 +90,11 @@ 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') {