remove debugging code
[roojs1] / Roo / Toolbar.js
index bd30d11..b6ecbd6 100644 (file)
@@ -529,7 +529,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;