Release 5.0.0-rc1
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* Font Awesome 5.0.0-rc1
|
||||
*/
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
@@ -233,13 +237,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) {
|
||||
@@ -553,7 +557,7 @@ var namespace = w[NAMESPACE_IDENTIFIER];
|
||||
|
||||
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');
|
||||
@@ -779,7 +783,7 @@ var build = function build() {
|
||||
var iconName = shim[2];
|
||||
|
||||
if (prefix === 'far' && !hasRegular) {
|
||||
prefix = 'fa';
|
||||
prefix = 'fas';
|
||||
}
|
||||
|
||||
acc[oldName] = { prefix: prefix, iconName: iconName };
|
||||
@@ -827,7 +831,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