From f86d6d51e35a65389f518711c2acf70458a021d0 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 16 Mar 2015 17:40:31 -0700 Subject: [PATCH] Only init emoji map once. `emoji.init_colons` creates and populates `emoji.map.colons`, a global map from common names to emoji code points. It's safe to call repeatedly, but unecessary. --- js/views/conversation_view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 94ad07d1a..268ae3b77 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -16,6 +16,7 @@ (function () { 'use strict'; window.Whisper = window.Whisper || {}; + emoji.init_colons(); Whisper.ConversationView = Whisper.View.extend({ className: function() { @@ -30,8 +31,6 @@ this.render(); - emoji.init_colons(); - this.fileInput = new Whisper.FileInputView({ el: this.$el.find('.attachments') });