aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-30 16:31:17 -0300
committerSilvio <silvio@socioambiental.org>2013-04-30 16:31:17 -0300
commitd4004d0558a9b06abe601120cd7cc12e233ebf97 (patch)
tree04961fdf26de59a4a1af981983ba9bf4a377ca63
parent1402b6492c677daf3aa2aea932bb210e49a44b02 (diff)
downloadgmap_arcgis_js-d4004d0558a9b06abe601120cd7cc12e233ebf97.tar.gz
gmap_arcgis_js-d4004d0558a9b06abe601120cd7cc12e233ebf97.tar.bz2
Using Object.keys() instead of layers.toSource()
-rw-r--r--gmap_arcgis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 24c2608..dc22f17 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -137,7 +137,7 @@ function gmapArcgis(config) {
}
// Callback only if layers is not empty
- if (layers.toSource() !== "({})") {
+ if (Object.keys(layers).length > 0) {
params.identify.callback(layers, params.infowindow, err);
}
}