Skip to content

Commit

Permalink
Update picturefill to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bdukes committed May 27, 2015
1 parent 1917d63 commit 3765cd3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
Binary file removed _InstallPackages/picturefill_2.3.0.zip
Binary file not shown.
Binary file added _InstallPackages/picturefill_2.3.1.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<ol style="max-height: 20em; overflow: auto;">
<li>
<strong>2.3.1</strong>
<p>This release fixes a critical issue with Picturefill's <code>currentSrc</code> support test. This issue caused errors in both the Spartan and WebKit nightlies.</p>
</li>
<li>
<strong>2.3.0</strong>
<p>Changes from <a href="#release-2.3.0-beta">Picturefill 2.3 Beta</a></p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>picturefill is licened under the <a href="https://raw.githubusercontent.com/scottjehl/picturefill/2.3.0/LICENSE">MIT License</a>.</p>
<p>picturefill is licened under the <a href="https://raw.githubusercontent.com/scottjehl/picturefill/2.3.1/LICENSE">MIT License</a>.</p>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="picturefill" type="JavaScript_Library" version="2.3.0">
<package name="picturefill" type="JavaScript_Library" version="2.3.1">
<friendlyName>Picturefill</friendlyName>
<description><![CDATA[A responsive image polyfill for <code>&lt;picture></code>, <code>srcset</code>, <code>sizes</code>, and more
<a href="http://scottjehl.github.com/picturefill/">http://scottjehl.github.com/picturefill/</a>]]></description>
Expand All @@ -24,7 +24,7 @@
<libraryName>picturefill</libraryName>
<fileName>picturefill.js</fileName>
<preferredScriptLocation>BodyBottom</preferredScriptLocation>
<CDNPath>https://cdn.jsdelivr.net/picturefill/2.3.0/picturefill.min.js</CDNPath>
<CDNPath>https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js</CDNPath>
<objectName>picturefill</objectName>
</javaScriptLibrary>
</component>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Picturefill - v2.3.0 - 2015-03-23
/*! Picturefill - v2.3.1 - 2015-04-09
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
Expand Down Expand Up @@ -92,6 +92,7 @@ window.matchMedia || (window.matchMedia = function() {
(function() {
pf.srcsetSupported = "srcset" in image;
pf.sizesSupported = "sizes" in image;
pf.curSrcSupported = "currentSrc" in image;
})();

// just a string trim workaround
Expand Down Expand Up @@ -504,7 +505,9 @@ window.matchMedia || (window.matchMedia = function() {
picImg.src = bestCandidate.url;
// currentSrc attribute and property to match
// http://picture.responsiveimages.org/#the-img-element
picImg.currentSrc = picImg.src;
if ( !pf.curSrcSupported ) {
picImg.currentSrc = picImg.src;
}

pf.backfaceVisibilityFix( picImg );
}
Expand Down Expand Up @@ -707,17 +710,13 @@ window.matchMedia || (window.matchMedia = function() {
}
}, 250 );

var resizeTimer;
var handleResize = function() {
picturefill({ reevaluate: true });
};
function checkResize() {
var resizeThrottle;

if ( !w._picturefillWorking ) {
w._picturefillWorking = true;
w.clearTimeout( resizeThrottle );
resizeThrottle = w.setTimeout( function() {
picturefill({ reevaluate: true });
w._picturefillWorking = false;
}, 60 );
}
clearTimeout(resizeTimer);
resizeTimer = setTimeout( handleResize, 60 );
}

if ( w.addEventListener ) {
Expand Down

0 comments on commit 3765cd3

Please sign in to comment.