     telephone = "Tel: #{@get('phone')}" if @get('phone')
     _.compact(_.flatten([@lines(), telephone])).join '<br/>'
 
-  displayAddress: -> if @lines() then @lines().join(", ") else ""
+  displayAddress: ->
+    if @lines() then @lines().join(", ") else ""
 
-  displayName: -> if @has("display") then @get("display") else @get("name")
+  displayName: ->
+    if @has("display") then @get("display") else @get("name")
 
   getMapsLocation: ->
     if @get('coordinates')

_                              = require 'underscore'
Backbone                       = require 'backbone'
{ compactObject } = require './mixins/compact_object.coffee'

module.exports = class Location extends Backbone.Model

  defaults: ->
    raw: ''
    address: ''

      @displayAddress()

  toJSONLD: ->
    address = [@get('address') or '', @get('address_2') or ''].join('')
    compactObject {
      "@type": "Place"
      name: @get('name')
