Roo/Toolbar.js
[roojs1] / roojs-debug.js
index dce4e90..a232b1a 100644 (file)
@@ -28691,7 +28691,9 @@ Roo.Toolbar.TextItem = function(cfg){
     var  text = cfg || "";
     if (typeof(cfg) == 'object') {
         text = cfg.text || "";
-    }  
+    }  else {
+        cfg = null;
+    }
     var s = document.createElement("span");
     s.className = "ytb-text";
     s.innerHTML = text;