Roo/bootstrap/Button.js
authorEdward <edward@roojs.com>
Mon, 31 Mar 2014 10:19:19 +0000 (18:19 +0800)
committerEdward <edward@roojs.com>
Mon, 31 Mar 2014 10:19:19 +0000 (18:19 +0800)
Roo/bootstrap/Button.js

index 7d4aa2d..99dd052 100644 (file)
@@ -191,27 +191,6 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             ];
         }
         
-        if (this.badge) {
-            cfg.html += ' ';
-            
-            cfg.tag = 'a';
-            
-            cfg.cls='btn roo-button';
-            
-            cfg.href=this.href;
-            
-            cfg.cn = [
-                cfg.html,
-                {
-                    tag: 'span',
-                    cls: 'badge',
-                    html: this.badge
-                }
-            ];
-            
-            cfg.html='';
-        }
-        
         if (cfg.tag !== 'a' && this.href !== '') {
             throw "Tag must be a to set href.";
         } else if (this.href.length > 0) {