From: Robert Kaiser Date: Sun, 7 Jul 2013 21:52:10 +0000 (+0200) Subject: we need to return even if position isn't set X-Git-Tag: legacy-preGL~19 X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=commitdiff_plain;h=df81068a623617335f324f8db12808f0c065e35e we need to return even if position isn't set --- diff --git a/js/map.js b/js/map.js index 62a14d4..41a413d 100644 --- a/js/map.js +++ b/js/map.js @@ -135,10 +135,10 @@ function loadPrefs(aEvent) { gPrefs.get("position", function(aValue) { if (aValue) { gPos = aValue; - gWaitCounter--; - var throwEv = new CustomEvent("prefs-step"); - gAction.dispatchEvent(throwEv); } + gWaitCounter--; + var throwEv = new CustomEvent("prefs-step"); + gAction.dispatchEvent(throwEv); }); gWaitCounter++; gPrefs.get("center_map", function(aValue) {