Skip to content

Commit

Permalink
Fix issue with changing between imperial and metric units
Browse files Browse the repository at this point in the history
  • Loading branch information
schneiderderek committed Jul 11, 2015
1 parent 86b822b commit 350ebea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.13.1
* Fix issue with changing between metric and imperial units

## 0.13.0
* Add support for latitude and longitude location inputs
* Change how unit selection is handled
Expand Down
4 changes: 3 additions & 1 deletion lib/weather-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class WeatherView extends HTMLElement
'units', 'showIcon', 'showHumidity', 'showHigh', 'showLow', 'showTemp',
'showSunrise', 'showSunset', 'showHumidity', 'showPressure', 'showWindSpeed',
'showWindDirection']
configRefreshTriggers: ['units', 'locationMethod']
configResponseMappings:
showTemp:
unit:
Expand Down Expand Up @@ -56,7 +57,8 @@ class WeatherView extends HTMLElement
for optionName in @configRerenderTriggers
atom.config.onDidChange "weather.#{optionName}", @showWeather.bind(@)

atom.config.onDidChange "weather.locationMethod", @refresh.bind(@)
for optionName in @configRefreshTriggers
atom.config.onDidChange "weather.#{optionName}", @refresh.bind(@)

isVisible: ->
@classList.contains('hidden')
Expand Down

0 comments on commit 350ebea

Please sign in to comment.