diff options
author | Silvio <silvio@socioambiental.org> | 2015-08-03 12:57:35 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2015-08-03 12:57:35 -0300 |
commit | 31cf2b8f6319d603cbde12a43cff14095e45f4d2 (patch) | |
tree | eb29c5bf1f998b307c3c77e03a06e7bfab13d7df | |
parent | 93a853a9e21738a3f3ce0ef1785e5c878090a605 (diff) | |
download | gmap_arcgis_js-31cf2b8f6319d603cbde12a43cff14095e45f4d2.tar.gz gmap_arcgis_js-31cf2b8f6319d603cbde12a43cff14095e45f4d2.tar.bz2 |
More for strict mode
-rw-r--r-- | gmap_arcgis.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 2057506..5d0e8a8 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -140,7 +140,7 @@ function gmapArcgis(config) { var count = 0; - for (value in object) { + for (var value in object) { count++; } @@ -292,7 +292,7 @@ function gmapArcgis(config) { this.identifyPolygon(this.config['layers'][element]); } else if (this.config['layers'][element].overlay[0] != undefined) { - for (i=0; i < this.config['layers'][element].overlay.length; i++) { + for (var i=0; i < this.config['layers'][element].overlay.length; i++) { this.config['layers'][element].overlay[i].setVisible(true); } } @@ -736,12 +736,12 @@ function gmapArcgis(config) { // Close all registered infoWindows closeInfoWindows: function() { - overlays = [ 'layers', 'markers' ]; + var overlays = [ 'layers', 'markers' ]; - for (i in overlays) { + for (var i in overlays) { var overlay = this.config[overlays[i]]; - for (element in overlay) { + for (var element in overlay) { if (overlay[element].infowindow != undefined) { this.config[overlays[i]][element].infowindow.close(); } |