fix jslint confusion warning

ExtJS components accept for the items property either a
single component or an array of components which generates
a jslint type confusion warning.
This commit is contained in:
Emmanuel Kasper 2016-12-05 14:48:08 +01:00 committed by Dietmar Maurer
parent 6eb2141a78
commit 734a91b9b9

View File

@ -60,7 +60,6 @@ Ext.define('PVE.window.StartupEdit', {
onlineHelp: undefined, onlineHelp: undefined,
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
var ipanelConfig = me.onlineHelp ? {onlineHelp: me.onlineHelp} : {}; var ipanelConfig = me.onlineHelp ? {onlineHelp: me.onlineHelp} : {};
@ -71,7 +70,7 @@ Ext.define('PVE.window.StartupEdit', {
fieldDefaults: { fieldDefaults: {
labelWidth: 120 labelWidth: 120
}, },
items: ipanel items: [ ipanel ]
}); });
me.callParent(); me.callParent();