[pve-devel] [PATCH 2/2] ext5migrate: replace deprecated call Ext.ModelMgr.create()

Emmanuel Kasper e.kasper at proxmox.com
Wed Apr 29 11:57:30 CEST 2015


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 0f72e46..ca7691b 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.1.4





More information about the pve-devel mailing list