From e6e5610e5b7bdd634f0beb826ba1b10de847ea0f Mon Sep 17 00:00:00 2001 From: Daniel Perez Alvarez Date: Tue, 13 Jan 2015 16:37:56 +0000 Subject: [PATCH] Allow for configurable `className` --- twemoji-generator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twemoji-generator.js b/twemoji-generator.js index a715de0c..96243ed0 100755 --- a/twemoji-generator.js +++ b/twemoji-generator.js @@ -312,6 +312,9 @@ function createTwemoji(re) { // available via Twitter CDN: 16, 36, 72 size: '36x36', + // default class name, by default 'emoji' + className: 'emoji', + // basic utilities / helpers to convert code points // to JavaScript surrogates and vice versa convert: { @@ -754,7 +757,7 @@ function createTwemoji(re) { base: typeof how.base === 'string' ? how.base : twemoji.base, ext: how.ext || twemoji.ext, size: how.folder || toSizeSquaredAsset(how.size || twemoji.size), - className:how.className || 'emoji' + className:how.className || twemoji.className }); }