chore: Write less do more

pull/5466/head
Moein Porkamel 5 years ago committed by GitHub
parent cc16137def
commit 7d734c2d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,7 +118,7 @@ export function slide(node: Element, {
const border_top_width = parseFloat(style.borderTopWidth);
const border_bottom_width = parseFloat(style.borderBottomWidth);
const targetProp = direction === 'vertical' ? 'height' : 'width';
const targetPropVal = targetProp === 'height' ? parseFloat(style.height) : parseFloat(style.width);
const targetPropVal = parseFloat(style[targetProp]);
return {
delay,

Loading…
Cancel
Save