From bce35e58dc3cdd6793ecd4cf47349ede240199e6 Mon Sep 17 00:00:00 2001 From: Alexander Farkas Date: Wed, 27 May 2020 11:19:20 +0200 Subject: [PATCH] 5.2.2 --- package.json | 2 +- plugins/artdirect/ls.artdirect.min.js | 2 +- plugins/aspectratio/ls.aspectratio.min.js | 2 +- plugins/attrchange/ls.attrchange.min.js | 2 +- plugins/bgset/ls.bgset.min.js | 2 +- plugins/blur-up/ls.blur-up.min.js | 2 +- plugins/custommedia/ls.custommedia.min.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c8f029eb..af410a76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lazysizes", - "version": "5.2.1", + "version": "5.2.2", "filename": "lazysizes.min.js", "license": "MIT", "author": "Alexander Farkas ", diff --git a/plugins/artdirect/ls.artdirect.min.js b/plugins/artdirect/ls.artdirect.min.js index 10077358..3c1b3676 100644 --- a/plugins/artdirect/ls.artdirect.min.js +++ b/plugins/artdirect/ls.artdirect.min.js @@ -1,3 +1,3 @@ -/*! lazysizes - v5.2.1 */ +/*! lazysizes - v5.2.2 */ !function(e,t){var i;e&&(i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0))}("undefined"!=typeof window?window:0,function(o,e,u){"use strict";var d,t,l,f,m,h,p,s;function g(e){return'source[data-tag~="'+e+'"]'}function n(e){var t,i,a,r,s,n,c=e.getAttribute("media");return{source:e,aspectRatio:(t=e,s=parseFloat(t.getAttribute("data-aspectratio")),n=t.getAttribute(d.srcsetAttr)||t.getAttribute("srcset"),s||(r=(i=n.match(f))?"w"==i[2]?(a=i[1],i[3]):(a=i[3],i[1]):(a=t.getAttribute("width"),t.getAttribute("height")),s=a/r),s),isSelected:!c||o.matchMedia(c).matches}}function c(e,t){return e.aspectRatioMath.abs(e[a].aspectRatio-t)&&(i=e[a]);return i}(t.selector?a.filter(function(e){return e.source.matches(t.selector)}):a,i);r.isSelected||y(r.source,"(min-width: 1px)"),a.filter(function(e){return e!=r&&e.isSelected}).forEach(function(e){y(e.source,"(x)")})}o.addEventListener&&(d=u.cfg,t=(o.Element||Node||o.HTMLElement).prototype,l=/artdirect/,f=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,m=/artdirect["']*\s*:\s*["']*(.+?)(?=($|'|"|;))/,h=/^picture$/i,p=/[\s,]+/g,s=[].slice,t.matches||(t.matches=t.matchesSelector||t.webkitMatchesSelector||t.msMatchesSelector||t.oMatchesSelector),o.addEventListener("lazybeforesizes",function(e){var t,i,a,r,s,n,c;e.detail.instance==u&&(t=e.target,r=(a=t).parentNode,s=h.test(r.nodeName||""),n=(o.getComputedStyle(a)||{}).fontFamily,c=null,s&&(d.autoArtDirect||l.test(n||""))&&(c={picture:r,img:a,tags:n.match(m)}).tags&&(c.selector=c.tags[1].split(p).map(g).join(",")),(i=c)&&b(i))},!0))}); \ No newline at end of file diff --git a/plugins/aspectratio/ls.aspectratio.min.js b/plugins/aspectratio/ls.aspectratio.min.js index fc7d166d..f9947d10 100644 --- a/plugins/aspectratio/ls.aspectratio.min.js +++ b/plugins/aspectratio/ls.aspectratio.min.js @@ -1,3 +1,3 @@ -/*! lazysizes - v5.2.1 */ +/*! lazysizes - v5.2.2 */ !function(e,t){var i=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",i,!0)};t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?i():e.addEventListener("lazyunveilread",i,!0)}(window,function(o,r,e){"use strict";var s,t,i,n,d,c,a,u,f,l,m,h,p;function g(){this.ratioElems=r.getElementsByClassName("lazyaspectratio"),this._setupEvents(),this.processImages()}o.addEventListener&&(s=Array.prototype.forEach,d=/^picture$/i,a="img["+(c="data-aspectratio")+"]",u=function(e){return o.matchMedia?(u=function(e){return!e||(matchMedia(e)||{}).matches})(e):o.Modernizr&&Modernizr.mq?!e||Modernizr.mq(e):!e},f=e.aC,l=e.rC,m=e.cfg,g.prototype={_setupEvents:function(){function t(e){e.naturalWidth<36?n.addAspectRatio(e,!0):n.removeAspectRatio(e,!0)}function e(){n.processImages()}var i,n=this;function a(){s.call(n.ratioElems,t)}r.addEventListener("load",function(e){e.target.getAttribute&&e.target.getAttribute(c)&&t(e.target)},!0),addEventListener("resize",function(){clearTimeout(i),i=setTimeout(a,99)}),r.addEventListener("DOMContentLoaded",e),addEventListener("load",e)},processImages:function(e){for(var t=("length"in(e=e||r)&&!e.nodeName?e:e.querySelectorAll(a)),i=0;it._lazysizesWidth)&&(t._lazysizesWidth=a),t._lazysizesWidth))}))}); \ No newline at end of file diff --git a/plugins/blur-up/ls.blur-up.min.js b/plugins/blur-up/ls.blur-up.min.js index 4460ddb3..34515524 100644 --- a/plugins/blur-up/ls.blur-up.min.js +++ b/plugins/blur-up/ls.blur-up.min.js @@ -1,3 +1,3 @@ -/*! lazysizes - v5.2.1 */ +/*! lazysizes - v5.2.2 */ !function(e,t){var n;e&&(n=function(){t(e.lazySizes),e.removeEventListener("lazyunveilread",n,!0)},t=t.bind(null,e,e.document),"object"==typeof module&&module.exports?t(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],t):e.lazySizes?n():e.addEventListener("lazyunveilread",n,!0))}("undefined"!=typeof window?window:0,function(l,m,g){"use strict";function i(e,t){var r;return(e?n.call(e.querySelectorAll("source, img")):[t]).forEach(function(e){var t,n,a,i;r||(!(t=e.getAttribute("data-lowsrc"))||(a=(n=e).getAttribute("data-media")||n.getAttribute("media"),(i=n.getAttribute("type"))&&!u.test(i)||a&&!l.matchMedia(g.cfg.customMedia[a]||a).matches)||(r=t))}),r}function r(e,t,n,a){function i(){l&&g.rAF(function(){g.rC(t,"ls-blur-up-is-loading");try{l.parentNode.removeChild(l)}catch(e){}l=null})}function r(e){c++,s=e||s,e?i():1