     @$el = $ '.weather'
     @apikey = 'e35c4324fb7999ba5788fbba8c901d11'
 
-  update: (data) ->
+  update: (data) =>
     @data = data
     @processData()
     if not @initialized and data.displayWeather isnt off

  convertTemperature: (kelvin) ->
    deg = @data.temperatureUnits or 'c'
    Math.round if deg is 'c' then kelvin - 273.15 else kelvin * 9 / 5 - 459.67

  processData: -> return

  updateTemperatureUnits: ->
    @getLocation()
      .then @cacheLocation
      .then @createUrlFromLocation
      .then @getWeather
      .then JSON.parse
      .then (data) =>
