Skip to content
Snippets Groups Projects
Commit 0146a92f authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

reverse array

parent 90ef828e
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment