Clean select code.
This commit is contained in:
parent
82c0ae88f8
commit
47b46813db
1 changed files with 3 additions and 1 deletions
|
@ -41,11 +41,13 @@ const elRect = el => {
|
||||||
return {l: rect.left, t: rect.top, r: rect.right, b: rect.bottom};
|
return {l: rect.left, t: rect.top, r: rect.right, b: rect.bottom};
|
||||||
};
|
};
|
||||||
|
|
||||||
const rectEqual = (r1, r2) => !!r1 && !!r2 &&
|
const rectEqual = (r1, r2) => {
|
||||||
|
return !!r1 && !!r2 &&
|
||||||
r1.l === r2.l &&
|
r1.l === r2.l &&
|
||||||
r1.t === r2.t &&
|
r1.t === r2.t &&
|
||||||
r1.r === r2.r &&
|
r1.r === r2.r &&
|
||||||
r1.b === r2.b;
|
r1.b === r2.b;
|
||||||
|
};
|
||||||
|
|
||||||
const updateRects = $items => {
|
const updateRects = $items => {
|
||||||
const el0 = $items[0];
|
const el0 = $items[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue