Release 5.0.0-rc1

This commit is contained in:
robmadole
2017-09-15 15:47:51 -05:00
committed by Rob Madole
parent fceb1b8f6b
commit 733c00cf65
80 changed files with 7415 additions and 229 deletions

View File

@@ -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, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
return ('' + str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
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;