Open Redsandro opened 7 years ago
Yep, you are right. I created a new object because I wanted performance gain for the loops. (mainly for this function: wdtEmojiBundle.fillPickerPopup())
It would be nice to have just one object, maybe we can find a better way. And this bundle uses sheets instead of single images.
We have a long string of emoji data in
emoji.min.js
and again but different indefaults.emojiData
. Can we have just one? Where does the latter come from? Did you create the latter one yourself, or could it be a dependency?emoji.min.js
->js-emoji
defaults.emojiData
I think you could deprecate the dependency on
js-emoji
and useemojiData
to define images in the layout.E.g. in stead of
use separate function for something like
it returns the image (or
undefined
)