Thank you for reporting this bug. We will make it our priority to review this report.
If you have a store with multiple sorters a bug occurs in Ext.util.Sortable::createComparator().
Code:
createComparator: function(sorters) {
return sorters && sorters.length ? function(r1, r2) {
var result = sorters[0].sort(r1, r2),
length = sorters.length,
i = 1;
for (; !result && i < length; i++) {
result = sorters[i].sort.call(this, r1, r2); // <--- Bug
// Correct implementation might look like:
var sorter = sorters[i];
result = sorter.sort.call(sorter, r1, r2);
}
return result;
} : function() {
return 0;
};
}
[ExtJS 5.1.0.107 GPL] Bug in Ext.util.Sortable::createComparator method
Aucun commentaire:
Enregistrer un commentaire