diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-01-29 14:00:00 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-01-29 14:00:00 +0100 |
commit | a9a2daeebf8ef351b3efe74549026ce7619873ff (patch) | |
tree | 63765f17a445c7ca7c97e3f62275a0dd143866e4 | |
parent | 3d6d59b6886709f95445795e5b082d14e7e49239 (diff) | |
download | osm-xapi-a9a2daeebf8ef351b3efe74549026ce7619873ff.tar.gz osm-xapi-a9a2daeebf8ef351b3efe74549026ce7619873ff.tar.xz osm-xapi-a9a2daeebf8ef351b3efe74549026ce7619873ff.zip |
fixed syntax errors
-rw-r--r-- | src/nodejs/main.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nodejs/main.js b/src/nodejs/main.js index ce4518d..a7ff07b 100644 --- a/src/nodejs/main.js +++ b/src/nodejs/main.js @@ -98,7 +98,7 @@ var urlToXpathObj = function urlToXpathObj(url){ var parseBboxList = function(string){ - result = /(.+)(:?,(.+)){3}/.exec(string): + result = /(.+)(:?,(.+)){3}/.exec(string); if(result.length != 4){ throw "error"; @@ -107,10 +107,11 @@ var urlToXpathObj = function urlToXpathObj(url){ result.shift(); return { - 'left' : result[0]; - 'bottom' : result[1]; - 'right' : result[2]; - 'top' : result[3]; + 'left' : result[0], + 'bottom' : result[1], + 'right' : result[2], + 'top' : result[3] + }; } var xp = {}; |