FIX: missing emoji autocomplete

This commit is contained in:
Régis Hanol 2015-06-05 20:24:49 +02:00 committed by Robin Ward
parent 28d219dfed
commit 03fcf99039

View File

@ -166,7 +166,7 @@ Discourse.Emoji.search = function(term, options) {
var maxResults = (options && options["maxResults"]) || -1; var maxResults = (options && options["maxResults"]) || -1;
if (maxResults === 0) { return []; } if (maxResults === 0) { return []; }
toSearch = toSearch || _.merge(_.keys(emojiHash), _.keys(extendedEmoji)); toSearch = toSearch || _.union(_.keys(emojiHash), _.keys(extendedEmoji)).sort();
var i, results = []; var i, results = [];