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

Commit bec4643

Browse files
committed
Regen dist
1 parent 4e22e1a commit bec4643

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

dist/picturefill.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,15 @@ window.matchMedia || (window.matchMedia = function() {
317317
if ( sizeDescriptor ) {
318318
var splitDescriptor = sizeDescriptor.split(" ");
319319

320-
for (var i = splitDescriptor.length + 1; i >= 0; i--) {
321-
if ( splitDescriptor[ i ] !== undefined ) {
322-
var curr = splitDescriptor[ i ],
323-
lastchar = curr && curr.slice( curr.length - 1 );
324-
325-
if ( ( lastchar === "h" || lastchar === "w" ) && !pf.sizesSupported ) {
326-
resCandidate = parseFloat( ( parseInt( curr, 10 ) / widthInCssPixels ) );
327-
} else if ( lastchar === "x" ) {
328-
var res = curr && parseFloat( curr, 10 );
329-
resCandidate = res && !isNaN( res ) ? res : 1;
330-
}
320+
for (var i = splitDescriptor.length - 1; i >= 0; i--) {
321+
var curr = splitDescriptor[ i ],
322+
lastchar = curr && curr.slice( curr.length - 1 );
323+
324+
if ( ( lastchar === "h" || lastchar === "w" ) && !pf.sizesSupported ) {
325+
resCandidate = parseFloat( ( parseInt( curr, 10 ) / widthInCssPixels ) );
326+
} else if ( lastchar === "x" ) {
327+
var res = curr && parseFloat( curr, 10 );
328+
resCandidate = res && !isNaN( res ) ? res : 1;
331329
}
332330
}
333331
}

dist/picturefill.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)