You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var list = new can.List([
{ firstName: 'Chris', lastName: 'Gomez' },
{ firstName: 'Justin', lastName: 'Meyer' }
]);
list.attr('comparator', 'firstName');
list.attr('0.lastName', 'First'); // _getInsertIndex is called needlessly
list.attr('comparator', function (a, b) {
a = a.attr('firstName');
b = b.attr('firstName');
return a === b ? 0 : a > b ? -1 : 1; // Desc
});
list.attr('1.lastName', 'Last'); // _getInsertIndex is called needlessly
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: