This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.
Closed
Description
Possible duplicate of open issue, but simpleweather sometimes errors and calls no callbacks.
jquery.simpleWeather.min.js:2 Uncaught TypeError: Cannot read property 'channel' of null
However, its not triggering the error function on the original query
$.simpleWeather({
location: 'Waterloo',
woeid: '',
unit: 'c',
success: function(weather) {
$("#curTemp").html("Outdoor Weather: " + weather.temp + "°C, " + weather.currently);
},
error: function(error) {
$('#curTemp').html("Could not get Weather data");
}
Is there a way to make it call the error callback if this occurs?