Commit c6938202 authored by Guillaume's avatar Guillaume

Linter happiness

parent ac963f4c
Pipeline #440 passed with stage
in 3 minutes and 26 seconds
......@@ -288,10 +288,10 @@ class Layout {
// Check if temp is the last rendered node at its level.
if (!temp.nextSibling) {
// We need to ensure that the previous sibling of temp is fully rendered.
const renderedNodeFromSource = findElement(renderedNode, source)
const walker = document.createTreeWalker(renderedNodeFromSource, NodeFilter.SHOW_ELEMENT)
const lastChildOfRenderedNodeFromSource = walker.lastChild()
const lastChildOfRenderedNodeMatchingFromRendered = findElement(lastChildOfRenderedNodeFromSource, rendered)
const renderedNodeFromSource = findElement(renderedNode, source);
const walker = document.createTreeWalker(renderedNodeFromSource, NodeFilter.SHOW_ELEMENT);
const lastChildOfRenderedNodeFromSource = walker.lastChild();
const lastChildOfRenderedNodeMatchingFromRendered = findElement(lastChildOfRenderedNodeFromSource, rendered);
// Check if we found that the last child in source
if (!lastChildOfRenderedNodeMatchingFromRendered) {
// Pending content to be rendered before virtual break token
......
......@@ -69,9 +69,9 @@ class StringSets extends Handler {
// let cssVar = previousPageLastString;
// Get the last found string for the current identifier
let cssVar = ( name in this.pageLastString ) ? this.pageLastString[name] : '';
let cssVar = ( name in this.pageLastString ) ? this.pageLastString[name] : "";
selected.forEach((sel) => {
selected.forEach((sel) => {
// push each content into the array to define in the variable the first and the last element of the page.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment