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

Commit

Permalink
prepare release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Jul 29, 2015
1 parent 552823f commit 1ef1ac6
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 43 deletions.
46 changes: 25 additions & 21 deletions dist/picturefill.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/*! Picturefill - v3.0.0-beta1 - 2015-07-24
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
/*! Picturefill - v3.0.0-beta1 - 2015-07-29
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT
*/
/*! Gecko-Picture - v1.0
* https://github.com/scottjehl/picturefill/tree/3.0/src/plugins/gecko-picture
* Firefox's early picture implementation (prior to FF41) is static and does
* not react to viewport changes. This tiny module fixes this.
*/
(function(window) {
/*jshint eqnull:true */
var ua = navigator.userAgent;
Expand Down Expand Up @@ -65,13 +71,13 @@
}
})(window);

/*! Picturefill - Responsive Images that work today.
* Author: Scott Jehl, Filament Group, 2012 ( new proposal implemented by Shawn Jansepar )
/*! Picturefill - v3.0.0-beta
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt;
* License: MIT
* Spec: http://picture.responsiveimages.org/
*/

(function( window, document, undefined ) {
/* global parseSizes */
// Enable strict mode
"use strict";

Expand Down Expand Up @@ -192,7 +198,7 @@
return string;
};

var buidlStr = memoize(function(css) {
var buildStr = memoize(function(css) {

return "return " + replace((css || "").toLowerCase(),
// interpret `and`
Expand Down Expand Up @@ -226,7 +232,7 @@
} else {
/*jshint evil:true */
try{
cssCache[css] = new Function("e", buidlStr(css))(units);
cssCache[css] = new Function("e", buildStr(css))(units);
} catch(e) {}
/*jshint evil:false */
}
Expand Down Expand Up @@ -740,9 +746,6 @@
} // (Close of big while loop.)
}

/* jshint ignore:start */
// jscs:disable

/*
* Sizes Parser
*
Expand Down Expand Up @@ -825,9 +828,9 @@

// (Loop forwards from the beginning of the string.)
while (true) {
chrctr = str[pos];
chrctr = str.charAt(pos);

if (chrctr === undefined) { // ( End of string reached.)
if (chrctr === "") { // ( End of string reached.)
pushComponent();
pushComponentArray();
return listArray;
Expand All @@ -845,7 +848,7 @@
// (If previous character in loop was also a space, or if
// at the beginning of the string, do not add space char to
// component.)
if ((str[pos - 1] && isSpace(str[pos - 1])) || (!component)) {
if ( (str.charAt(pos - 1) && isSpace( str.charAt(pos - 1) ) ) || !component ) {
pos += 1;
continue;
} else if (parenDepth === 0) {
Expand All @@ -861,11 +864,11 @@
} else if (chrctr === ")") {
parenDepth -= 1;
} else if (chrctr === ",") {
pushComponent()
pushComponent();
pushComponentArray();
pos += 1;
continue;
} else if ((chrctr === "/") && (str[pos + 1] === "*")) {
} else if ( (chrctr === "/") && (str.charAt(pos + 1) === "*") ) {
inComment = true;
pos += 2;
continue;
Expand Down Expand Up @@ -949,8 +952,6 @@
// size value, return 100vw.
return "100vw";
}
// jscs: enable
/* jshint ignore:end */

// namespace
pf.ns = ("pf" + new Date().getTime()).substr(0, 9);
Expand Down Expand Up @@ -1451,8 +1452,6 @@

on( window, "resize", debounce(onResize, 99 ) );
on( document, "readystatechange", run );

types[ "image/webp" ] = detectTypeSupport("image/webp", "data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==" );
})();
}

Expand Down Expand Up @@ -1495,4 +1494,9 @@
define( "picturefill", function() { return picturefill; } );
}

// IE8 evals this sync, so it must be the last thing we do
if ( !window.HTMLPictureElement ) {
types[ "image/webp" ] = detectTypeSupport("image/webp", "data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==" );
}

} )( window, document );
9 changes: 5 additions & 4 deletions dist/picturefill.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/plugins/intrinsic-dimension/pf.intrinsic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/plugins/mutation/pf.mutation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/plugins/oldie/pf.oldie.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/plugins/print/pf.print.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/plugins/typesupport/pf.type.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ <h3 class="hed-subsection" id="contributing">Contributing, Bug Reports, and More

<h2 class="hed-section" id="download">Downloading Picturefill</h2>

<h3 class="hed-subsection">Picturefill Version 3.0.0 (Beta 1)</h3>
<p>Version 3 is a full rewrite of the codebase featuring optimized performance, better emulation of native behavior, and new spec-based parsers. It also handles some of the quirks, shortcomings, and edge cases related to first-generation native implementations. For IE 9 and earlier, version 3 includes a small shim that polyfills the use of common media conditions (<code>min-width</code>, <code>max-width</code>, <code>min-height</code>, <code>max-height</code>). If you need old IE support for other media conditions, such as <code>orientation</code> or <code>aspect-ratio</code>, please additionally include the <a href="https://github.com/paulirish/matchMedia.js/">matchMedia polyfill</a>. Feedback on this beta release is highly welcomed—if you encounter any problems, please <a href="https://github.com/scottjehl/picturefill/issues">file an issue on GitHub</a>.</p>
<h3 class="hed-subsection">Picturefill Version 3.0.0 (RC 1)</h3>
<p>Version 3 is a full rewrite of the codebase featuring optimized performance, better emulation of native behavior, and new spec-based parsers. It also handles some of the quirks, shortcomings, and edge cases related to first-generation native implementations. For IE 9 and earlier, version 3 includes a small shim that polyfills the use of common media conditions (<code>min-width</code>, <code>max-width</code>, <code>min-height</code>, <code>max-height</code>). If you need old IE support for other media conditions, such as <code>orientation</code> or <code>aspect-ratio</code>, please additionally include the <a href="https://github.com/paulirish/matchMedia.js/">matchMedia polyfill</a>. Feedback on this release candidate is highly welcomed—if you encounter any problems, please <a href="https://github.com/scottjehl/picturefill/issues">file an issue on GitHub</a>.</p>
<ul>
<li>
<a href="#" class="download">picturefill.js</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "picturefill",
"description": "A responsive image polyfill.",
"version": "3.0.0-beta1",
"version": "3.0.0-rc1",
"homepage": "https://scottjehl.github.io/picturefill/",
"bugs": "https://github.com/scottjehl/picturefill/issues",
"license": "MIT",
Expand Down

0 comments on commit 1ef1ac6

Please sign in to comment.