[pve-devel] [PATCH widget-toolkit 08/15] fix var assignments
Dominik Csapak
d.csapak at proxmox.com
Mon Jan 15 15:17:41 CET 2018
only declare 'grid' once
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
button/Button.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/button/Button.js b/button/Button.js
index 0d65d57..dade477 100644
--- a/button/Button.js
+++ b/button/Button.js
@@ -64,15 +64,16 @@ Ext.define('Proxmox.button.Button', {
me.callParent();
+ var grid;
if (!me.selModel && me.selModel !== null) {
- var grid = me.up('grid');
+ grid = me.up('grid');
if (grid && grid.selModel) {
me.selModel = grid.selModel;
}
}
if (me.waitMsgTarget === true) {
- var grid = me.up('grid');
+ grid = me.up('grid');
if (grid) {
me.waitMsgTarget = grid;
} else {
--
2.11.0
More information about the pve-devel
mailing list