Open ManuZenou opened 6 years ago
is there a way to 'destroy' the emoji picker?
Hımm good point. Currently, we don't have that functionality.
I need this functionality so when it would be added?
You can write your own simple function and place it anywhere in the code. e.g.:
wdtEmojiBundle.off = function (eventName, handler) {
switch (eventName) {
case "select":
return wdtEmojiBundle.dispatchHandlers.select = [];
break;
case "afterSelect":
return wdtEmojiBundle.dispatchHandlers.afterSelect = [];
break;
case "afterPickerOpen":
return wdtEmojiBundle.dispatchHandlers.afterPickerOpen = [];
break;
default:
console.error('wdt-emoji-bundle - Not supported event type!', eventName);
break;
}
};
and just call it like:
wdtEmojiBundle.off('afterSelect')
The function is a modified version of wdtEmojiBundle.on()
Im user 'on' to bind select event.
can do I unbind it? is there an off() function?
Thanks.