Skip to content
Snippets Groups Projects
Commit 45d0f234 authored by Kasalehlia's avatar Kasalehlia
Browse files

the callback is now first time only

parent 8ded7d0d
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,7 @@ module.exports = function (io) { ...@@ -70,6 +70,7 @@ module.exports = function (io) {
var then = function () { var then = function () {
if (context.current && context.forecast) { if (context.current && context.forecast) {
firstUpdateCb(); firstUpdateCb();
then = function () {}
} }
}; };
fetchCurrent(CITYID, function (current) { fetchCurrent(CITYID, function (current) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment