Keep track of a per-map storage handler variable. It can be accessed if needed by...
authorBrandon Bergren
Fri, 19 Dec 2008 18:27:57 +0000 (18:27 +0000)
committerBrandon Bergren
Fri, 19 Dec 2008 18:27:57 +0000 (18:27 +0000)
js/gmap.js

index bc53df9..304afec 100755 (executable)
@@ -38,6 +38,7 @@ Drupal.gmap = new function() {
 
   this.setup = function() {
     var obj = this;
+    var hls;
 
     var initcallback = function(mapid) {
       return (function() {
@@ -71,7 +72,8 @@ Drupal.gmap = new function() {
 
       if (_handlers[control]) {
         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 {