Skip to content

Commit d9d62aa

Browse files
remove 1 more
1 parent a146f98 commit d9d62aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/oc-client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,13 @@ export function createOc(oc) {
555555

556556
oc.renderUnloadedComponents = () => {
557557
oc.ready(() => {
558-
const $unloadedComponents = $(
559-
OC_TAG + "[data-rendered!=true][data-failed!=true]",
558+
const unloadedComponents = document.querySelectorAll(
559+
`${OC_TAG}:not([data-rendered="true"]):not([data-failed="true"])`,
560560
);
561561

562-
$unloadedComponents.map((idx, unloadedComponent) => {
562+
unloadedComponents.forEach((unloadedComponent, idx) => {
563563
oc.renderNestedComponent(unloadedComponent, () => {
564-
if (idx == $unloadedComponents.length - 1) {
564+
if (idx == unloadedComponents.length - 1) {
565565
oc.renderUnloadedComponents();
566566
}
567567
});

0 commit comments

Comments
 (0)