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.
This commit is contained in:
lilia 2015-03-16 17:40:31 -07:00
parent 5df56663ef
commit f86d6d51e3

View file

@ -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')
});