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

index 100e4d9..bd30d11 100644 (file)
@@ -526,7 +526,7 @@ Roo.Toolbar.Fill = Roo.extend(Roo.Toolbar.Spacer, {
  * @param {String} text
  */
 Roo.Toolbar.TextItem = function(cfg){
-    var  text = cfg;
+    var  text = cfg || "";
     if (typeof(cfg) == 'object') {
         text = cfg.text || "";
     }