Skip to content
Snippets Groups Projects
Commit aa72631a authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Keep track of a per-map storage handler variable. It can be accessed if needed...

Keep track of a per-map storage handler variable. It can be accessed if needed by adding a second parameter to the callback function.
parent 391cc88f
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ Drupal.gmap = new function() { ...@@ -38,6 +38,7 @@ Drupal.gmap = new function() {
this.setup = function() { this.setup = function() {
var obj = this; var obj = this;
var hls;
var initcallback = function(mapid) { var initcallback = function(mapid) {
return (function() { return (function() {
...@@ -71,7 +72,8 @@ Drupal.gmap = new function() { ...@@ -71,7 +72,8 @@ Drupal.gmap = new function() {
if (_handlers[control]) { if (_handlers[control]) {
for (var i=0; i<_handlers[control].length; i++) { for (var i=0; i<_handlers[control].length; i++) {
_handlers[control][i].call(_maps[mapid], obj); hls = {};
_handlers[control][i].call(_maps[mapid], obj, hls);
} }
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment