Remove empty string class passed to contact template

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-14 12:30:04 -07:00
parent 8264f3ba33
commit 688cae6374
2 changed files with 1 additions and 2 deletions

View file

@ -255,7 +255,7 @@
</script> </script>
<script type='text/x-tmpl-mustache' id='contact'> <script type='text/x-tmpl-mustache' id='contact'>
{{> avatar }} {{> avatar }}
<div class='contact-details {{ class }}'> {{> contact_name_and_number }} </div> <div class='contact-details {{ #class }} {{ class }} {{ /class}}'> {{> contact_name_and_number }} </div>
</script> </script>
<script type='text/x-tmpl-mustache' id='new-contact'> <script type='text/x-tmpl-mustache' id='new-contact'>
{{> avatar }} {{> avatar }}

View file

@ -31,7 +31,6 @@
} }
return { return {
class: '',
title: this.model.getTitle(), title: this.model.getTitle(),
number: this.model.getNumber(), number: this.model.getNumber(),
avatar: this.model.getAvatar(), avatar: this.model.getAvatar(),