diff options
Diffstat (limited to 'svg-with-js/js/fontawesome.js')
-rw-r--r-- | svg-with-js/js/fontawesome.js | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/svg-with-js/js/fontawesome.js b/svg-with-js/js/fontawesome.js index 93d26ec1..e18e4008 100644 --- a/svg-with-js/js/fontawesome.js +++ b/svg-with-js/js/fontawesome.js @@ -1,6 +1,6 @@ /*! - * Font Awesome Free 5.0.6 by @fontawesome - http://fontawesome.com - * License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Font Awesome Free 5.0.7 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ (function () { 'use strict'; @@ -606,7 +606,7 @@ function makeLayersTextAbstract(params) { var noop$2 = function noop() {}; var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$2, measure: noop$2 }; -var preamble = 'FA "5.0.6"'; +var preamble = 'FA "5.0.7"'; var begin = function begin(name) { p.mark(preamble + ' ' + name + ' begins'); @@ -888,6 +888,8 @@ function disableObservation(operation) { disabled = false; } +var mo = null; + function observe(options) { if (!MUTATION_OBSERVER) return; @@ -896,7 +898,7 @@ function observe(options) { pseudoElementsCallback = options.pseudoElementsCallback; - var mo = new MUTATION_OBSERVER(function (objects) { + mo = new MUTATION_OBSERVER(function (objects) { if (disabled) return; toArray(objects).forEach(function (mutationRecord) { @@ -934,6 +936,12 @@ function observe(options) { }); } +function disconnect() { + if (!mo) return; + + mo.disconnect(); +} + var styleParser = function (node) { var style = node.getAttribute('style'); @@ -1581,8 +1589,10 @@ function resolveIcons(next) { } var library = new Library(); + var noAuto = function noAuto() { - return auto(false); + auto(false); + disconnect(); }; var dom = { @@ -1711,7 +1721,7 @@ var layer = function layer(assembler) { var children = []; assembler(function (args) { - Array.isArray(args) ? children = args.map(function (a) { + Array.isArray(args) ? args.map(function (a) { children = children.concat(a.abstract); }) : children = children.concat(args.abstract); }); |