mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-15 03:35:16 +00:00
Merge d7909f5150
into 2c4d66ec91
This commit is contained in:
commit
6e9980bb1e
@ -516,6 +516,14 @@ define(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};
|
||||
}
|
||||
|
@ -515,6 +515,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};
|
||||
}
|
||||
|
2
2/twemoji.min.js
vendored
2
2/twemoji.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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};
|
||||
}
|
||||
|
@ -931,6 +931,14 @@ function createTwemoji(re) {
|
||||
}
|
||||
|
||||
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};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user