diff --git a/lib/contacts.nsui.js b/lib/contacts.nsui.js index b10ff38..763f49e 100644 --- a/lib/contacts.nsui.js +++ b/lib/contacts.nsui.js @@ -65,8 +65,8 @@ ContactList.prototype.rmContact = function(name) { console.log('removing ' + name + 'from contacts'); for (var i = this.lst.children.length - 1; i >= 0; --i) { if (this.lst.children[i].children[0].innerHTML === name) { - console.log('deleted'); this.lst.removeChild(this.lst.children[i]); + delete this.contacts[name]; break ; } }