From 5ae3ca27ca9dfe3a6f2609b8b2b57e3ee02b8523 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Thu, 10 Oct 2013 12:24:11 +0200 Subject: [PATCH] Fix the metadata return value --- js/models.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/models.js b/js/models.js index 8dc36d5..4608f11 100644 --- a/js/models.js +++ b/js/models.js @@ -76,9 +76,9 @@ models.service('models', ['colors', function(colors) { var displayed = message['displayed']; var highlight = message['highlight']; var content = parseLineAddedTextElements(message); - var text = ""; + var rtext = ""; if(text[0] != undefined) { - text = text[0]['text']; + rtext = text[0]['text']; } return { @@ -88,7 +88,7 @@ models.service('models', ['colors', function(colors) { tags: tags_array, highlight: highlight, displayed: displayed, - text: text, + text: rtext, } }