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

index 6d61f14..94d2b05 100644 (file)
@@ -203,13 +203,12 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component,  {
             var value = cfg.html;
             
             if(this.glyphicon){
-                value = [
-                    {
-                        tag: 'span',
-                        cls: 'glyphicon glyphicon-' + this.glyphicon,
-                        html: this.html
-                    }
-                ];
+                value = {
+                            tag: 'span',
+                            cls: 'glyphicon glyphicon-' + this.glyphicon,
+                            html: this.html
+                        };
+                
             }
             
             cfg.cn = [