make sure anything using appcache actually updates to the GL version
[lantea.git] / js / ui.js
index 2ee227293986d01f8c2537b7f1c8582b2565f64d..650b9cee6a36ae904bc358d2265ed0cbd60e82a5 100644 (file)
--- a/js/ui.js
+++ b/js/ui.js
@@ -65,7 +65,7 @@ function postInit(aEvent) {
   gAction.removeEventListener(aEvent.type, postInit, false);
   console.log("init done, draw map.");
   gMapPrefsLoaded = true;
-  resizeAndDraw();
+  gMap.resizeAndDraw();
   gActionLabel.textContent = "";
   gAction.style.display = "none";
   setTracking(document.getElementById("trackCheckbox"));
@@ -83,7 +83,7 @@ function postInit(aEvent) {
 }
 
 window.onresize = function() {
-  resizeAndDraw();
+  gMap.resizeAndDraw();
 }
 
 function initDB(aEvent) {