remove debugging code
[roojs1] / Roo / Toolbar.js
index c23156c..b6ecbd6 100644 (file)
@@ -526,13 +526,12 @@ Roo.Toolbar.Fill = Roo.extend(Roo.Toolbar.Spacer, {
  * @param {String} text
  */
 Roo.Toolbar.TextItem = function(cfg){
-    var text ="";
+    var  text = cfg || "";
     if (typeof(cfg) == 'object') {
         text = cfg.text || "";
-    } else {
+    }  else {
         cfg = null;
     }
-     
     var s = document.createElement("span");
     s.className = "ytb-text";
     s.innerHTML = text;