Skip to content

Commit dae3d1c

Browse files
updated: the generator source code, prefer constants instead overriding variables
1 parent 1fafacc commit dae3d1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.next.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ export function loadImages(imgs) {
3636
* @yields { Promise } a promise that will be resolved when the image will be completely loaded
3737
*/
3838
export function * loadImagesGen (imgs) {
39-
imgs = domToArray(imgs)
40-
for (let img of imgs) {
39+
const list = domToArray(imgs)
40+
41+
for (let img of list) {
4142
yield loadImage(img)
4243
}
4344
}

0 commit comments

Comments
 (0)