Fix the metadata return value

This commit is contained in:
Tor Hveem 2013-10-10 12:24:11 +02:00
parent b94edd0ff5
commit 5ae3ca27ca
1 changed files with 3 additions and 3 deletions

View File

@ -76,9 +76,9 @@ models.service('models', ['colors', function(colors) {
var displayed = message['displayed']; var displayed = message['displayed'];
var highlight = message['highlight']; var highlight = message['highlight'];
var content = parseLineAddedTextElements(message); var content = parseLineAddedTextElements(message);
var text = ""; var rtext = "";
if(text[0] != undefined) { if(text[0] != undefined) {
text = text[0]['text']; rtext = text[0]['text'];
} }
return { return {
@ -88,7 +88,7 @@ models.service('models', ['colors', function(colors) {
tags: tags_array, tags: tags_array,
highlight: highlight, highlight: highlight,
displayed: displayed, displayed: displayed,
text: text, text: rtext,
} }
} }