Skip to content

Commit

Permalink
gets rid of silly js error related to array identification
Browse files Browse the repository at this point in the history
  • Loading branch information
ablwr committed Feb 7, 2017
1 parent d3d0865 commit 7c40689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/search.js
Expand Up @@ -9,7 +9,7 @@
var item = store[results[i].ref];
appendString += '<li><a href="' + item.url + '"><h3>' + item.title + '</h3></a>';
if (item.namevar) { // Are there any synonyms for the artefact?
akaList = item.namevar.join(', ')
var akaList = Array.prototype.join.call(item.namevar, ", ");
appendString += '<p><sub>Also known as: ' + akaList + ' </sub></p></li>';
}
appendString += '<p>' + item.content.substring(0, 150) + '...</p></li>';
Expand Down

0 comments on commit 7c40689

Please sign in to comment.