Skip to content

Commit

Permalink
FIX: duplicate emojis in emoji-toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP committed Mar 23, 2015
1 parent 55f293d commit 6930c89
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/assets/javascripts/discourse/lib/emoji/emoji.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 6930c89

Please sign in to comment.