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

Contacts: Define self.

This commit is contained in:
Thomas Tanghus 2012-12-20 22:59:34 +01:00
parent b2de5cb380
commit fa2ce2f1c0

View File

@ -1537,7 +1537,7 @@ OC.Contacts = OC.Contacts || {};
};
ContactList.prototype.setCurrent = function(id, deselect_other) {
self = this;
var self = this;
if(deselect_other === true) {
$.each(this.contacts, function(contact) {
self.contacts[contact].setCurrent(false);