-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated building. Added a patch for emojione, see joypixels/emojione#435
- Loading branch information
Michele Olivo
committed
Mar 7, 2017
1 parent
4192073
commit 8d87d6a
Showing
3 changed files
with
67 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- node_modules/emojione/lib/js/emojione.js 2017-03-07 10:36:43.366301447 +0100 | ||
+++ node_modules/emojione/lib/js/emojione.js 2017-03-07 10:22:17.000000000 +0100 | ||
@@ -317,7 +317,7 @@ | ||
|
||
ns.unicodeToImage = function(str) { | ||
|
||
- var replaceWith,unicode,short,fname,alt,title; | ||
+ var replaceWith,unicode,shortName,fname,alt,title; | ||
var mappedUnicode = ns.mapUnicodeToShort(); | ||
str = str.replace(ns.regUnicode, function(unicodeChar) { | ||
if( (typeof unicodeChar === 'undefined') || (unicodeChar === '') || (!(unicodeChar in ns.jsEscapeMap)) ) { | ||
@@ -329,12 +329,12 @@ | ||
unicode = ns.jsEscapeMap[unicodeChar]; | ||
|
||
//then map to shortname and locate the filename | ||
- short = mappedUnicode[unicode]; | ||
- fname = ns.emojioneList[short].fname; | ||
+ shortName = mappedUnicode[unicode]; | ||
+ fname = ns.emojioneList[shortName].fname; | ||
|
||
// depending on the settings, we'll either add the native unicode as the alt tag, otherwise the shortname | ||
- alt = (ns.unicodeAlt) ? ns.convert(unicode.toUpperCase()) : short; | ||
- title = ns.imageTitleTag ? 'title="'+short+'"' : ''; | ||
+ alt = (ns.unicodeAlt) ? ns.convert(unicode.toUpperCase()) : shortName; | ||
+ title = ns.imageTitleTag ? 'title="'+shortName+'"' : ''; | ||
|
||
if(ns.imageType === 'png') { | ||
if(ns.sprites) { |