Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2bdff2

Browse files
committed
Use undefined instead of delete for performance
1 parentab734b6 commitf2bdff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎packages/core/image-asset/image-asset-common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function getRequestedImageSize(src: { width: number; height: number }, op
5555
optionsCopy.width=parsedWidth;
5656
}else{
5757
console.warn('Invalid width value provided: ',optionsCopy.width);
58-
deleteoptionsCopy.width;
58+
optionsCopy.width=undefined;
5959
}
6060
}
6161

@@ -65,7 +65,7 @@ export function getRequestedImageSize(src: { width: number; height: number }, op
6565
optionsCopy.height=parsedHeight;
6666
}else{
6767
console.warn('Invalid height value provided: ',optionsCopy.height);
68-
deleteoptionsCopy.height;
68+
optionsCopy.height=undefined;
6969
}
7070
}
7171

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp