From 0f44ea26b60d69672cb2383469ab2cb77084cda4 Mon Sep 17 00:00:00 2001 From: Arvind Date: Wed, 10 Jul 2013 18:03:53 +0530 Subject: [PATCH] Fix a syntax error --- static/text-annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/text-annotation.js b/static/text-annotation.js index 32ece6f..f191dcf 100644 --- a/static/text-annotation.js +++ b/static/text-annotation.js @@ -52,7 +52,7 @@ var attributes = {}; }); $('.well a').click(function(event){ if($(event.currentTarget).text().search('#')){ - len = $(event.currentTarget).text().split('#').len(); + len = $(event.currentTarget).text().split('#').length; xpath = $(event.currentTarget).text().split('#')[len-1]; } else -- 1.7.10.4