]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/router.js
Import leaflet.contextmenu source files
[rails.git] / app / assets / javascripts / router.js
index 904134fc078630cedbd86c5f0771abafa950e366..0f37e32f1747107a06dd22d76fa2464b9a441484 100644 (file)
@@ -86,7 +86,7 @@ OSM.Router = function(map, rts) {
 
   var routes = [];
   for (var r in rts)
-    routes.push(Route(r, rts[r]));
+    routes.push(new Route(r, rts[r]));
 
   routes.recognize = function(path) {
     for (var i = 0; i < this.length; i++) {