Skip to content
Snippets Groups Projects
Verified Commit a0e7b91f authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: watch only if Object.keys(self[attributeObserverSymbol].length > 0)

parent f0249b23
No related branches found
No related tags found
No related merge requests found
......@@ -615,6 +615,10 @@ function initAttributeChangeMutationObserver() {
self[attributeObserverSymbol] = {};
}
if(Object.keys(self[attributeObserverSymbol]).length === 0) {
return;
}
new MutationObserver(function (mutations) {
for (const mutation of mutations) {
if (mutation.type === "attributes") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment