X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4be0e9bd103292a22bd2ca7c8f2744f33c4457d3..db7374f2bbdd0b3ee0f3cb0a9cca84f9c72cffb5:/app/assets/javascripts/router.js?ds=sidebyside diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 904134fc0..0f37e32f1 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -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++) {