Roo/Toolbar.js
authorEdward <edward@roojs.com>
Tue, 19 May 2015 10:33:58 +0000 (18:33 +0800)
committerEdward <edward@roojs.com>
Tue, 19 May 2015 10:33:58 +0000 (18:33 +0800)
Roo/Toolbar.js

index cdf83a7..c23156c 100644 (file)
@@ -528,7 +528,7 @@ Roo.Toolbar.Fill = Roo.extend(Roo.Toolbar.Spacer, {
 Roo.Toolbar.TextItem = function(cfg){
     var text ="";
     if (typeof(cfg) == 'object') {
-        text = cfg.text;
+        text = cfg.text || "";
     } else {
         cfg = null;
     }