Bug fix: adding multiple _gmaps_csv_ class
MODIFY
www/Map.js
www/Map.js
@@ -139,7 +139,7 @@ Map.prototype.getMap = function(mapId, div, options) {
// prevent multiple readding the class
if (div.classList && !div.classList.contains('_gmaps_cdv_')) {
div.classList.add('_gmaps_cdv_');
- } else if (div.className && div.className.indexOf('_gmaps_cdv_') != -1) {
+ } else if (div.className && div.className.indexOf('_gmaps_cdv_') === -1) {
div.className = div.className + ' _gmaps_cdv_';
}
@@ -558,7 +558,7 @@ Map.prototype.setDiv = function(div) {
// prevent multiple readding the class
if (div.classList && !div.classList.contains('_gmaps_cdv_')) {
div.classList.add('_gmaps_cdv_');
- } else if (div.className && div.className.indexOf('_gmaps_cdv_') != -1) {
+ } else if (div.className && div.className.indexOf('_gmaps_cdv_') === -1) {
div.className = div.className + ' _gmaps_cdv_';
}

Bug fix: adding multiple _gmaps_csv_ class