]> git.openstreetmap.org Git - rails.git/commitdiff
destroy the box handler as well
authorChristopher Schmidt <crschmidt@crschmidt.net>
Sat, 26 Apr 2008 16:33:26 +0000 (16:33 +0000)
committerChristopher Schmidt <crschmidt@crschmidt.net>
Sat, 26 Apr 2008 16:33:26 +0000 (16:33 +0000)
app/views/browse/start.rjs

index 783c387b2021b69099a99d1a26e6d39f347d4090..80a691b4e64c50eeacbae554c2ac743ff88714f6 100644 (file)
@@ -47,6 +47,10 @@ page << <<EOJ
                 sf.destroy();  
                 sf = null;
             } 
+           if (box) {
+               box.destroy();
+               box = null;
+            }          
             if (currentFeature) {
                 currentFeature.destroy(); 
                 currentFeature = null;