|
|
@ -137,7 +137,7 @@ class AppSelection { |
|
|
|
|
|
|
|
|
|
|
|
const slice = elements.slice(firstIndex + 1, lastIndex); |
|
|
|
const slice = elements.slice(firstIndex + 1, lastIndex); |
|
|
|
|
|
|
|
|
|
|
|
console.log('getElementsBetween', first, last, slice, firstIndex, lastIndex, isHigher); |
|
|
|
// console.log('getElementsBetween', first, last, slice, firstIndex, lastIndex, isHigher);
|
|
|
|
|
|
|
|
|
|
|
|
return slice; |
|
|
|
return slice; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -202,7 +202,7 @@ class AppSelection { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const elementsBetween = getElementsBetween(firstTarget, element); |
|
|
|
const elementsBetween = getElementsBetween(firstTarget, element); |
|
|
|
console.log(elementsBetween); |
|
|
|
// console.log(elementsBetween);
|
|
|
|
if(elementsBetween.length) { |
|
|
|
if(elementsBetween.length) { |
|
|
|
elementsBetween.forEach(element => { |
|
|
|
elementsBetween.forEach(element => { |
|
|
|
processElement(element, false); |
|
|
|
processElement(element, false); |
|
|
|