From a9a2daeebf8ef351b3efe74549026ce7619873ff Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 29 Jan 2011 14:00:00 +0100 Subject: fixed syntax errors --- src/nodejs/main.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') 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 = {}; -- cgit v1.2.3