Apparently 'final' is a reserved word in JS...

This commit is contained in:
Richard Fairhurst 2014-01-23 22:29:09 +00:00
parent 7c13b43f31
commit 149182f620
5 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ OSM.RoutingEngines.list.push({
"TSHR": 4,
"TU": 5
}, // was half expecting to see TLDR in there
getRoute: function(final,points) {
getRoute: function(isFinal,points) {
var url="http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/";
var p=[];
for (var i=0; i<points.length; i++) {