зеркало из https://github.com/mozilla/popcorn-js.git
Merge pull request #108 from cadecairos/t1162
Add existence check for newdiv variable in googlemap ready callback [#11...
This commit is contained in:
Коммит
c25078ef00
|
@ -150,6 +150,7 @@ var googleCallback;
|
|||
// before setting up the map parameters
|
||||
var isMapReady = function () {
|
||||
if ( _mapLoaded ) {
|
||||
if ( newdiv ) {
|
||||
if ( options.location ) {
|
||||
// calls an anonymous google function called on separate thread
|
||||
geocoder.geocode({
|
||||
|
@ -166,6 +167,7 @@ var googleCallback;
|
|||
location = new google.maps.LatLng( options.lat, options.lng );
|
||||
map = buildMap( options, location, newdiv );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
isMapReady();
|
||||
|
|
Загрузка…
Ссылка в новой задаче