Skip to content

Commit 3b9071f

Browse files
committed
5291: fixed syntax
1 parent 0403aa7 commit 3b9071f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/lib/dom.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,15 @@ function isTransformableElement(element) {
151151
}
152152

153153
function domRectsAreEqual(a, b) {
154-
return a && b
155-
&& a.left === b.left
156-
&& a.top === b.top
157-
&& a.right === b.right
158-
&& a.bottom === b.bottom
159-
&& a.x === b.x
160-
&& a.y === b.y;
154+
return (
155+
a && b &&
156+
a.left === b.left &&
157+
a.top === b.top &&
158+
a.right === b.right &&
159+
a.bottom === b.bottom &&
160+
a.x === b.x &&
161+
a.y === b.y
162+
);
161163
}
162164

163165
module.exports = {

0 commit comments

Comments
 (0)