Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 1540bf6

Browse files
author
aFarkas
committed
fixed source selection with already cached images
1 parent ea1ddab commit 1540bf6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/picturefill.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,6 @@
11001100
bestCandidate,
11011101
curSrc,
11021102
curCan,
1103-
isSameSet,
11041103
candidateSrc,
11051104
abortCurSrc;
11061105

@@ -1123,7 +1122,7 @@
11231122

11241123
// if current candidate is "best", "better" or "okay",
11251124
// set it to bestCandidate
1126-
if ( curCan && isSameSet && curCan.res >= dpr ) {
1125+
if ( curCan.res >= dpr ) {
11271126
bestCandidate = curCan;
11281127
}
11291128
}

0 commit comments

Comments
 (0)