1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00
This commit is contained in:
josephj 2017-05-25 11:20:48 +00:00 committed by GitHub
commit 7de36b890c

View File

@ -516,6 +516,14 @@ var twemoji = (function (
}
function parse(what, how) {
// first argument can only be string or HTML Element
if (
typeof what !== 'string' &&
!(what && what.nodeName)
) {
return what;
}
if (!how || typeof how === 'function') {
how = {callback: how};
}