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:
@@ -16,6 +16,7 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
window.Whisper = window.Whisper || {};
|
window.Whisper = window.Whisper || {};
|
||||||
|
emoji.init_colons();
|
||||||
|
|
||||||
Whisper.ConversationView = Whisper.View.extend({
|
Whisper.ConversationView = Whisper.View.extend({
|
||||||
className: function() {
|
className: function() {
|
||||||
@@ -30,8 +31,6 @@
|
|||||||
|
|
||||||
this.render();
|
this.render();
|
||||||
|
|
||||||
emoji.init_colons();
|
|
||||||
|
|
||||||
this.fileInput = new Whisper.FileInputView({
|
this.fileInput = new Whisper.FileInputView({
|
||||||
el: this.$el.find('.attachments')
|
el: this.$el.find('.attachments')
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user