diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-22 23:53:26 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-22 23:53:26 +0300 |
commit | 13f7ba059e48ebf090d8f8ae440f277097494c52 (patch) | |
tree | 4edac0cf6fb9fe379a20f72ecdf83a4107aa6286 /app/assets/javascripts | |
parent | 319c9360551280f7345c5d16ffb34fe5e73a1598 (diff) |
Removed usage of normilizeEmojiName method
Fixed some Ruby based on feedback
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/awards_handler.coffee | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/assets/javascripts/awards_handler.coffee b/app/assets/javascripts/awards_handler.coffee index a17867f8c9b..aea5d8363db 100644 --- a/app/assets/javascripts/awards_handler.coffee +++ b/app/assets/javascripts/awards_handler.coffee @@ -55,7 +55,6 @@ class @AwardsHandler , 200 addAward: (emoji) -> - emoji = @normilizeEmojiName(emoji) @postEmoji emoji, => @addAwardToEmojiBar(emoji) @@ -64,7 +63,6 @@ class @AwardsHandler addAwardToEmojiBar: (emoji) -> @addEmojiToFrequentlyUsedList(emoji) - emoji = @normilizeEmojiName(emoji) if @exist(emoji) if @isActive(emoji) @decrementCounter(emoji) @@ -165,9 +163,6 @@ class @AwardsHandler scrollTop: $('.awards').offset().top - 80 }, 200) - normilizeEmojiName: (emoji) -> - emoji - addEmojiToFrequentlyUsedList: (emoji) -> frequently_used_emojis = @getFrequentlyUsedEmojis() frequently_used_emojis.push(emoji) |