From 9f6ddd99eb3c9aac22e4d52448b697959793fa60 Mon Sep 17 00:00:00 2001 From: simon04 Date: Fri, 3 Jun 2011 22:14:58 +0200 Subject: [PATCH] Source code formatting. --- src/extension.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index f854706..0d55854 100644 --- a/src/extension.js +++ b/src/extension.js @@ -407,12 +407,13 @@ WeatherMenuButton.prototype = { this.load_json_async(this.get_weather_url(), function(weather) { let location = weather.get_object_member('location').get_string_member('city'); - if (this._city != null && this._city.length > 0) { + if (this._city != null && this._city.length > 0) location = this._city; - } + let comment = weather.get_object_member('condition').get_string_member('text'); if (this._translate_condition) comment = this.get_weather_condition(weather.get_object_member('condition').get_string_member('code')); + let temperature = weather.get_object_member('condition').get_double_member('temperature'); let humidity = weather.get_object_member('atmosphere').get_string_member('humidity') + ' %'; let pressure = weather.get_object_member('atmosphere').get_double_member('pressure');