X-Git-Url: https://git-public.kairo.at//?a=blobdiff_plain;f=js%2Fmap.js;h=41a413d7aa1481e1c6cdf41c9e75663c35d9afd3;hb=df81068a623617335f324f8db12808f0c065e35e;hp=716a0166db49a22a0278a605f73e20d20515766f;hpb=582d50fc8e75b19c1d07625d4ce759ea422b08f5;p=lantea.git diff --git a/js/map.js b/js/map.js index 716a016..41a413d 100644 --- a/js/map.js +++ b/js/map.js @@ -135,8 +135,10 @@ function loadPrefs(aEvent) { gPrefs.get("position", function(aValue) { if (aValue) { gPos = aValue; - gWaitCounter--; } + gWaitCounter--; + var throwEv = new CustomEvent("prefs-step"); + gAction.dispatchEvent(throwEv); }); gWaitCounter++; gPrefs.get("center_map", function(aValue) {