FIX: duplicate emojis in emoji-toolbar
This commit is contained in:
parent
55f293d062
commit
6930c8919e
|
@ -14,7 +14,6 @@ Discourse.Dialect.registerEmoji = function(code, url) {
|
|||
|
||||
Discourse.Emoji.list = function(){
|
||||
var list = emoji.slice(0);
|
||||
_.each(aliases, function(v,k){ list.push(k); });
|
||||
_.each(extendedEmoji, function(v,k){ list.push(k); });
|
||||
return list;
|
||||
};
|
||||
|
@ -72,7 +71,6 @@ Discourse.Emoji.urlFor = urlFor = function(code) {
|
|||
}
|
||||
|
||||
if(!url && emojiHash.hasOwnProperty(code)) {
|
||||
if (aliases.hasOwnProperty(code)) { code = aliases[code]; }
|
||||
url = Discourse.getURL('/images/emoji/' + set + '/' + code + '.png');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue