Roo/bootstrap/Button.js
authorJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 09:43:25 +0000 (17:43 +0800)
committerJulian Knowles <julian@roojs.com>
Fri, 24 Jan 2014 09:43:25 +0000 (17:43 +0800)
Roo/bootstrap/Button.js

index 1e13df6..8001b42 100644 (file)
@@ -51,16 +51,14 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
     glyphicon: '',
     badge: '',
     
-    autoCreate : {
-        cls: 'btn',
-        tag : 'button',
-        html: 'hello'
-    },
-    
     getAutoCreate : function(){
         Roo.log("Button Parent is : " + this.parent().xtype);
         
-        var cfg = Roo.apply({}, Roo.bootstrap.Button.superclass.getAutoCreate.call(this));
+        var cfg = {
+        cls: 'btn',
+        tag : 'button',
+        html: 'hello'
+    }
         
         cfg.html = this.html || cfg.html;