Skip to content

Commit 459d519

Browse files
author
flow-php
committed
1 parent 246b9c7 commit 459d519

File tree

945 files changed

+96834
-233351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

945 files changed

+96834
-233351
lines changed

aggregations/average/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/first/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/group_by/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/group_by_sum/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/last/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/max/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/min/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

aggregations/sum/index.html

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

assets/@symfony/stimulus-bundle/loader-763a9e2ea6bbeffec5de3eee8492b6ac.js renamed to assets/@symfony/stimulus-bundle/loader-9311b8ea36bad0f6168e687b4d6dee73.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,17 @@ class StimulusLazyControllerHandler {
5353
return;
5454
}
5555
new MutationObserver((mutationsList) => {
56-
for (const mutation of mutationsList) {
57-
switch (mutation.type) {
58-
case 'childList': {
59-
for (const node of mutation.addedNodes) {
60-
if (node instanceof Element) {
61-
extractControllerNamesFrom(node).forEach((controllerName) => {
62-
this.loadLazyController(controllerName);
63-
});
64-
}
56+
for (const { attributeName, target, type } of mutationsList) {
57+
switch (type) {
58+
case 'attributes': {
59+
if (attributeName === controllerAttribute &&
60+
target.getAttribute(controllerAttribute)) {
61+
extractControllerNamesFrom(target).forEach((controllerName) => this.loadLazyController(controllerName));
6562
}
6663
break;
6764
}
68-
case 'attributes': {
69-
if (mutation.attributeName === controllerAttribute) {
70-
extractControllerNamesFrom(mutation.target).forEach((controllerName) => this.loadLazyController(controllerName));
71-
}
65+
case 'childList': {
66+
this.lazyLoadExistingControllers(target);
7267
}
7368
}
7469
}

0 commit comments

Comments
 (0)