[pve-devel] [PATCH manager v2 3/3] fix jslint confusion warning

Emmanuel Kasper e.kasper at proxmox.com
Mon Dec 5 14:48:08 CET 2016


ExtJS components accept for the items property either a
single component or an array of components which generates
a jslint type confusion warning.
---
 www/manager6/window/StartupEdit.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/manager6/window/StartupEdit.js b/www/manager6/window/StartupEdit.js
index 7874794..75bb272 100644
--- a/www/manager6/window/StartupEdit.js
+++ b/www/manager6/window/StartupEdit.js
@@ -60,7 +60,6 @@ Ext.define('PVE.window.StartupEdit', {
     onlineHelp: undefined,
 
     initComponent : function() {
-	/*jslint confusion: true */
 
 	var me = this;
 	var ipanelConfig = me.onlineHelp ? {onlineHelp: me.onlineHelp} : {};
@@ -71,7 +70,7 @@ Ext.define('PVE.window.StartupEdit', {
 	    fieldDefaults: {
 		labelWidth: 120
 	    },
-	    items: ipanel
+	    items: [ ipanel ]
 	});
 
 	me.callParent();
-- 
2.1.4





More information about the pve-devel mailing list