replace calls to new() with Ext.create()

This commit is contained in:
Emmanuel Kasper 2016-03-17 10:31:10 +01:00 committed by Dietmar Maurer
parent c5b0115067
commit fbe1b520b3

View File

@ -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];