summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-07-22 14:58:57 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-07-23 01:17:38 +0200
commit0439a1832466cf1b2dce067c16bc30fa6378ef3b (patch)
tree0507c6939c146000f381335604a7cff51ab264b0 /apps
parentb00de0258be84d6a1b2309b95f23e10068865ed3 (diff)
downloadnextcloud-server-0439a1832466cf1b2dce067c16bc30fa6378ef3b.tar.gz
nextcloud-server-0439a1832466cf1b2dce067c16bc30fa6378ef3b.zip
Cleaner variable handling.
Diffstat (limited to 'apps')
-rw-r--r--apps/contacts/js/contacts.js18
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'];
}