1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

Minor speedup on show/hide.

This commit is contained in:
Thomas Tanghus 2013-05-31 21:31:22 +02:00
parent a54f65f963
commit 6b82d084d9

View File

@ -1964,8 +1964,8 @@ OC.Contacts = OC.Contacts || {};
this.setSortOrder();
return;
}
/*console.time('show');
$('tr.contact:visible').hide();
console.time('show');
$('tr.contact').filter(':visible').hide();
$.each(contacts, function(idx, id) {
var contact = self.findById(id);
if(contact === null) {
@ -1975,7 +1975,7 @@ OC.Contacts = OC.Contacts || {};
contact.setThumbnail();
});
console.timeEnd('show');
*/
// Amazingly this is slightly faster
//console.time('show');
for(var id in this.contacts) {
@ -1990,7 +1990,7 @@ OC.Contacts = OC.Contacts || {};
contact.setThumbnail();
}
}
//console.timeEnd('show');
//console.timeEnd('show');*/
this.setSortOrder();
};