This commit is contained in:
tophf 2018-08-06 21:27:48 +03:00
parent bfb35e77b8
commit 1b7c131c37

View File

@ -485,6 +485,7 @@
!force && scheduledSort) { !force && scheduledSort) {
return; return;
} }
scheduledSort = false;
let prevExpected = document.documentElement.lastElementChild; let prevExpected = document.documentElement.lastElementChild;
while (prevExpected && isSkippable(prevExpected, true)) { while (prevExpected && isSkippable(prevExpected, true)) {
prevExpected = prevExpected.previousElementSibling; prevExpected = prevExpected.previousElementSibling;
@ -497,7 +498,6 @@
scheduledSort = true; scheduledSort = true;
return; return;
} }
scheduledSort = false;
for (const el of styleElements.values()) { for (const el of styleElements.values()) {
if (!isMovable(el)) { if (!isMovable(el)) {
continue; continue;