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:
parent
5df56663ef
commit
f86d6d51e3
1 changed files with 1 additions and 2 deletions
|
@ -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')
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue