From 7623ffdb1d11c2391878e55ca9066e79f0409597 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 21 Nov 2016 15:51:57 +0800 Subject: [PATCH] Pman.Builder.Tree.js --- Pman.Builder.Tree.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Pman.Builder.Tree.js b/Pman.Builder.Tree.js index 071d986..33170c2 100644 --- a/Pman.Builder.Tree.js +++ b/Pman.Builder.Tree.js @@ -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(''); + if (sr) { + txt.push(''); + } 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('' + c.name+ ''); } if (c.region) { txt.push('(' + c.region + ')'); } if (c.dataIndex) { txt.push('[' + c.dataIndex+ ']'); } - if (sr) txt.push(''); + if (sr) { + txt.push(''); + } return (txt.length == 0 ? "Element" : txt.join(" ")); -- 2.39.2