From 2489e2abe35b46d1c7897dd9431eecaedbccd9e5 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Wed, 29 Apr 2015 11:57:30 +0200 Subject: [PATCH] ext5migrate: replace deprecated call Ext.ModelMgr.create() Ext.ModelMgr.create() was removed in 5.* The recommended way to create a new instance is to call Ext.create() Ext.create() does not take a "id" argument, however it sets the id of the instance to the id of the config object given to the Ext.create() call. --- www/manager5/tree/ResourceTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/manager5/tree/ResourceTree.js b/www/manager5/tree/ResourceTree.js index 0f72e467..ca7691b8 100644 --- a/www/manager5/tree/ResourceTree.js +++ b/www/manager5/tree/ResourceTree.js @@ -114,7 +114,7 @@ Ext.define('PVE.tree.ResourceTree', { } } } - var child = Ext.ModelMgr.create(info, 'PVETree', info.id); + var child = Ext.create('PVETree', info); var cs = node.childNodes; var pos; -- 2.39.5