From 0de8f278da635b098f70612b2598d853652cf516 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 11 Apr 2014 19:52:38 +0000 Subject: [PATCH] dont waited for loaded, check window.google --- source/Ox.UI/js/Map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Map/Map.js b/source/Ox.UI/js/Map/Map.js index 2de70efe..7693f60a 100644 --- a/source/Ox.UI/js/Map/Map.js +++ b/source/Ox.UI/js/Map/Map.js @@ -714,7 +714,7 @@ Ox.Map = function(options, self) { } function getMapBounds(callback) { - if (!self.loaded) { + if (!window.google) { setTimeout(function() { getMapBounds(callback); }, 100);