diff options
Diffstat (limited to 'advanced-options/use-with-node-js/fontawesome/index.es.js')
-rw-r--r-- | advanced-options/use-with-node-js/fontawesome/index.es.js | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/advanced-options/use-with-node-js/fontawesome/index.es.js b/advanced-options/use-with-node-js/fontawesome/index.es.js index a84aa21b..40399049 100644 --- a/advanced-options/use-with-node-js/fontawesome/index.es.js +++ b/advanced-options/use-with-node-js/fontawesome/index.es.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) */ var noop = function noop() {}; @@ -603,7 +603,7 @@ function makeLayersTextAbstract(params) { var noop$2 = function noop() {}; var p = config$1.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'); @@ -885,6 +885,8 @@ function disableObservation(operation) { disabled = false; } +var mo = null; + function observe(options) { if (!MUTATION_OBSERVER) return; @@ -893,7 +895,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) { @@ -931,6 +933,12 @@ function observe(options) { }); } +function disconnect() { + if (!mo) return; + + mo.disconnect(); +} + var styleParser = function (node) { var style = node.getAttribute('style'); @@ -1578,8 +1586,10 @@ function resolveIcons(next) { } var library = new Library(); + var noAuto = function noAuto() { - return auto(false); + auto(false); + disconnect(); }; var dom = { @@ -1708,7 +1718,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); }); |