summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2008-10-01 21:15:14 (GMT)
committer Brandon Bergren2008-10-01 21:15:14 (GMT)
commit7e8c69047badc23265878ba8891b6a6a9568b819 (patch)
tree64387a010908a0695e3b7e29d42c28f524044785
parent3b808980f47433bd62dd40cc7309f650ead78b7e (diff)
Add an unloadMap function for debugging.
-rwxr-xr-xjs/gmap.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/gmap.js b/js/gmap.js
index 7d0c5e0..9739514 100755
--- a/js/gmap.js
+++ b/js/gmap.js
@@ -19,6 +19,10 @@ Drupal.gmap = new function() {
return _maps[mapid];
};
+ this.unloadMap = function(mapid) {
+ delete _maps[mapid];
+ };
+
this.addHandler = function(handler,callback) {
if (!_handlers[handler]) {
_handlers[handler] = [];