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 () {
|
(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')
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue