diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-22 14:58:57 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-23 01:17:38 +0200 |
commit | 0439a1832466cf1b2dce067c16bc30fa6378ef3b (patch) | |
tree | 0507c6939c146000f381335604a7cff51ab264b0 /apps | |
parent | b00de0258be84d6a1b2309b95f23e10068865ed3 (diff) | |
download | nextcloud-server-0439a1832466cf1b2dce067c16bc30fa6378ef3b.tar.gz nextcloud-server-0439a1832466cf1b2dce067c16bc30fa6378ef3b.zip |
Cleaner variable handling.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/contacts/js/contacts.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index e53f695f976..db089b8d237 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -299,16 +299,6 @@ Contacts={ $('#contacts_propertymenu_dropdown a').keydown(propertyMenuItem); }, Card:{ - id:'', - fn:'', - fullname:'', - shortname:'', - famname:'', - givname:'', - addname:'', - honpre:'', - honsuf:'', - data:undefined, update:function(params) { // params {cid:int, aid:int} if(!params) { params = {}; } $('#contacts li,#contacts h3').removeClass('active'); @@ -588,8 +578,12 @@ Contacts={ $(this).find('input').val(''); } }); - this.fn = ''; this.fullname = ''; this.givname = ''; this.famname = ''; this.addname = ''; this.honpre = ''; this.honsuf = ''; - var narray = undefined; + + with(this) { + delete fn; delete fullname; delete givname; delete famname; + delete addname; delete honpre; delete honsuf; + } + if(this.data.FN) { this.fn = this.data.FN[0]['value']; } |