[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/js/ -> wp-emoji-loader.js (summary)

(no description)

File Size: 215 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  emojiSetsRenderIdentically()
  browserSupportsEmoji()
  addScript()

Functions
Functions that are not part of a class:

emojiSetsRenderIdentically( set1, set2 )   X-Ref
Checks if two sets of Emoji characters render the same visually.

param: {number[]} set1 Set of Emoji character codes.
param: {number[]} set2 Set of Emoji character codes.
return: {boolean} True if the two sets render the same.

browserSupportsEmoji( type )   X-Ref
Detects if the browser supports rendering emoji or flag emoji.

Flag emoji are a single glyph made of two characters, so some browsers
(notably, Firefox OS X) don't support them.

param: {string} type Whether to test for support of "flag" or "emoji".
return: {boolean} True if the browser can render emoji, false if it cannot.

addScript( src )   X-Ref
Adds a script to the head of the document.

param: {Object} src The url where the script is located.
return: {void}



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7