Release 5.0.0-rc1
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Font Awesome 5.0.0-rc1
|
||||
*/
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
@@ -218,13 +222,13 @@ function getIconName(familyPrefix, cls) {
|
||||
}
|
||||
|
||||
function htmlEscape(str) {
|
||||
return str.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>');
|
||||
return ('' + str).replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>');
|
||||
}
|
||||
|
||||
function joinAttributes(attributes) {
|
||||
return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
|
||||
return acc + (attributeName + '="' + attributes[attributeName] + '" ');
|
||||
}, '');
|
||||
return acc + (attributeName + '="' + htmlEscape(attributes[attributeName]) + '" ');
|
||||
}, '').trim();
|
||||
}
|
||||
|
||||
function joinStyles(styles) {
|
||||
@@ -529,7 +533,7 @@ function makeLayersTextAbstract(params) {
|
||||
|
||||
var noop$1 = function noop() {};
|
||||
var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$1, measure: noop$1 };
|
||||
var preamble = 'FA "5.0.0-beta7"';
|
||||
var preamble = 'FA "5.0.0-rc1"';
|
||||
|
||||
var begin = function begin(name) {
|
||||
p.mark(preamble + ' ' + name + ' begins');
|
||||
@@ -720,7 +724,7 @@ var build = function build() {
|
||||
var iconName = shim[2];
|
||||
|
||||
if (prefix === 'far' && !hasRegular) {
|
||||
prefix = 'fa';
|
||||
prefix = 'fas';
|
||||
}
|
||||
|
||||
acc[oldName] = { prefix: prefix, iconName: iconName };
|
||||
@@ -768,7 +772,7 @@ function getCanonicalIcon(values) {
|
||||
if (packs$3[cls]) {
|
||||
acc.prefix = cls;
|
||||
} else if (iconName) {
|
||||
var shim = byOldName(iconName);
|
||||
var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
|
||||
|
||||
acc.iconName = shim.iconName || iconName;
|
||||
acc.prefix = shim.prefix || acc.prefix;
|
||||
|
||||
Reference in New Issue
Block a user