1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-09 15:26:46 +02:00

Clean select code.

This commit is contained in:
Lars Jung
2016-06-29 16:59:39 +02:00
parent 82c0ae88f8
commit 47b46813db

View File

@@ -41,11 +41,13 @@ const elRect = el => {
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.t === r2.t &&
r1.r === r2.r &&
r1.b === r2.b;
};
const updateRects = $items => {
const el0 = $items[0];