From 524dd12fc6a244a4a5251bc054048190aaa2de69 Mon Sep 17 00:00:00 2001 From: apandada1 Date: Mon, 20 Jan 2014 19:55:58 +0530 Subject: [PATCH] Why add an extra localStorage? --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 9a37d75..508344a 100644 --- a/script.js +++ b/script.js @@ -73,7 +73,7 @@ function generateStats(data, callback) { weather.country = $(data).filterNode('yweather:location').attr("country") //Link - localStorage.typhoon_link = $(data).filterNode('item').children().filterNode("link").text() + weather.link = $(data).filterNode('item').children().filterNode("link").text() //Temperature weather.temperature = $(data).filterNode('item').children().filterNode("yweather:condition").attr("temp") @@ -115,7 +115,7 @@ function render(location) { getWeatherData(location, function(rawdata) { generateStats(rawdata, function(weather) { - $('#city').html('' + localStorage.typhoon_location + '') + $('#city').html('' + localStorage.typhoon_location + '') $("#code").text(weather_code(weather.code)).attr("class", "w" + weather.code) //Sets initial temp as Celsius