reverse array

This commit is contained in:
Stephan Porada 2020-04-08 09:46:37 +02:00
parent 90ef828e61
commit 0146a92f6d

View File

@ -249,7 +249,7 @@ class ResultsList extends List {
rc = document.getElementsByClassName("right-context");
for (let element of lc) {
array = Array.from(element.childNodes);
for (let element of array.slice(newContextValue)) {
for (let element of array.reverse().slice(newContextValue)) {
element.classList.add("hide");
}
for (let element of array.slice(0, newContextValue)) {