From 0f96e18552131d612b4dbca114d0cfddf5606833 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 20 Jan 2015 10:16:38 +0100 Subject: [PATCH] each -> forEach --- assets/scripts/app/helpers/helpers.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts/app/helpers/helpers.coffee b/assets/scripts/app/helpers/helpers.coffee index 385035dd..bd423d11 100644 --- a/assets/scripts/app/helpers/helpers.coffee +++ b/assets/scripts/app/helpers/helpers.coffee @@ -126,7 +126,7 @@ _toUtc = (date) -> _emojize = (text) -> emojis = text.match(/:\S+?:/g) if emojis isnt null - emojis.uniq().each (emoji, ix) -> + emojis.uniq().forEach (emoji, ix) -> strippedEmoji = emoji.substring(1, emoji.length - 1) unless EmojiDictionary.indexOf(strippedEmoji) is -1 image = '\'''