]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/export/start.rjs
Update to OpenLayers 2.10
[rails.git] / app / views / export / start.rjs
index b9e2da7f674edc3ec0d3a8dfeff14a91134884f6..b7687d11b917f27a71415b244b5bc58de1bf922f 100644 (file)
@@ -17,10 +17,10 @@ page << <<EOJ
         sides: 4,
         snapAngle: 90,
         irregular: true,
-        persist: true,
-        callbacks: { done: endDrag }
+        persist: true
       }
     });
+    box.handler.callbacks.done = endDrag;
     map.addControl(box);
 
     map.events.register("moveend", map, mapMoved);