mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-04-04 23:59:13 +08:00
Merge cf96c3bcac4301b069b66c7b240687ca00bd68c7 into afecf2af5d897b763e5e8e28d46aad2f710ccad6
This commit is contained in:
commit
553a7951f5
@ -1434,6 +1434,9 @@ function observe(options) {
|
|||||||
observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
|
observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
|
||||||
mo = new MUTATION_OBSERVER(function (objects) {
|
mo = new MUTATION_OBSERVER(function (objects) {
|
||||||
if (disabled) return;
|
if (disabled) return;
|
||||||
|
if (!config.observeMutations) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
toArray(objects).forEach(function (mutationRecord) {
|
toArray(objects).forEach(function (mutationRecord) {
|
||||||
if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
|
if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
|
||||||
if (config.searchPseudoElements) {
|
if (config.searchPseudoElements) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user