php7 fixes
[Pman.Builder] / Pman.Builder.Tree.js
index 0be8bbb..33170c2 100644 (file)
@@ -135,7 +135,9 @@ Pman.Builder.Tree = {
         var txt = [];
         c = c || {};
               var sr = (typeof(c['+buildershow']) != 'undefined') &&  !c['+buildershow'] ? true : false;
-            if (sr) txt.push('<s>');
+            if (sr) {
+                txt.push('<s>');
+            }
             if (typeof(c['*prop']) != 'undefined')   { txt.push(c['*prop']+ ':'); }
         if (c.xtype)      { txt.push(c.xtype); }
         if (c.fieldLabel) { txt.push('[' + c.fieldLabel + ']'); }
@@ -150,7 +152,9 @@ Pman.Builder.Tree = {
             if (c.name)       { txt.push('<b>' + c.name+ '</b>'); }
         if (c.region)     { txt.push('<i>(' + c.region + ')</i>'); }
             if (c.dataIndex) { txt.push('[' + c.dataIndex+ ']'); }
-            if (sr) txt.push('</s>');
+            if (sr) {
+                txt.push('</s>');
+            }
         return (txt.length == 0 ? "Element" : txt.join(" "));
         
         
@@ -186,7 +190,7 @@ Pman.Builder.Tree = {
         pn.removeChild(this.currentNode);
           
         if (!pn.childNodes.length) {
-            this.appendNode(pn, cfg, 'append')
+            this.appendNode(pn, cfg, 'append');
             return true;
         }
         if (!ix) {
@@ -371,8 +375,6 @@ Pman.Builder.Tree = {
             });
                 
         }
-        Roo.log('ret');
-        Roo.log(ret);
         return ret;