[pve-devel] [PATCH pve-manager 3/5] replace calls to new() with Ext.create()
Emmanuel Kasper
e.kasper at proxmox.com
Thu Mar 17 10:31:10 CET 2016
---
www/manager6/grid/ObjectGrid.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/manager6/grid/ObjectGrid.js b/www/manager6/grid/ObjectGrid.js
index 466e7be..159c9c8 100644
--- a/www/manager6/grid/ObjectGrid.js
+++ b/www/manager6/grid/ObjectGrid.js
@@ -82,12 +82,12 @@ Ext.define('PVE.grid.ObjectGrid', {
}
if (me.sorterFn) {
- store.sorters.add(new Ext.util.Sorter({
+ store.sorters.add(Ext.create('Ext.util.Sorter', {
sorterFn: me.sorterFn
}));
}
- store.filters.add(new Ext.util.Filter({
+ store.filters.add(Ext.create('Ext.util.Filter', {
filterFn: function(item) {
if (rows) {
var rowdef = rows[item.data.key];
--
2.1.4
More information about the pve-devel
mailing list