From e7226a9ca9508a25f8f662fd333295560be5334a Mon Sep 17 00:00:00 2001 From: Andrea Verlicchi Date: Mon, 17 Mar 2014 07:51:33 +0100 Subject: [PATCH] Releasing v2.0.2 - added support for src attribute --- bower.json | 2 +- index.html | 20 ++++++++++---------- picturePolyfill.js | 14 ++++++++------ picturePolyfill.min.js | 4 ++-- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/bower.json b/bower.json index 4dfc7d0..9ab3712 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "picturePolyfill", - "version": "2.0.0", + "version": "2.0.2", "main": "picturePolyfill.js", "ignore": [ ".idea", diff --git a/index.html b/index.html index f1235c6..64832a5 100644 --- a/index.html +++ b/index.html @@ -19,8 +19,8 @@
-

Responsive images using PicturePolyfill - Demo

-

The following link contains two responsive images created using a real <picture> element, and the picturePolyfill script.

+

Responsive images using picturePolyfill - Demo

+

The following link contains some responsive images created using a real <picture> element, and the picturePolyfill script.

@@ -38,10 +38,10 @@

With HD (Retina) display support

Without HD (Retina) display support

- - - - + + + + @@ -67,10 +67,10 @@

With HD (Retina) display support

Without HD (Retina) display support

- - - - + + + + diff --git a/picturePolyfill.js b/picturePolyfill.js index eb04394..3d07494 100644 --- a/picturePolyfill.js +++ b/picturePolyfill.js @@ -99,13 +99,14 @@ * @returns {string} */ function getSrcAttributeFromSourcesData(sourcesData) { - var media, - matchedSrc; + var matchedSrc; for (var i=0, len=sourcesData.length; i0);return c}function k(b){var d,e;for(var f=0,g=b.length;f0);return c}function k(b){var d;for(var e=0,f=b.length;e