Skip to content

Commit

Permalink
5.2.0-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Nov 13, 2019
1 parent 4643216 commit a0a0a38
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 5.2.0-beta

* Fix Safari Back-Forward Cache issue with lazyloading image elements (fixes [#711](https://github.com/aFarkas/lazysizes/issues/711))
* Fix wrong window context under very rare SSR (fixes [#717](https://github.com/aFarkas/lazysizes/pull/717))
* Fix Safari Back-Forward Cache issue with lazyloading image elements (fixes [#711](https://github.com/aFarkas/lazysizes/issues/711))
* Add lazyload of autoplay videos to unveilhooks (fixes [#697](https://github.com/aFarkas/lazysizes/issues/697))

Expand Down
8 changes: 6 additions & 2 deletions lazysizes-umd.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(function(window, factory) {
var lazySizes = factory(window, window.document, Date);
var lazySizes = factory(window, window.document);
if(typeof module == 'object' && module.exports){
module.exports = lazySizes;
} else if (typeof define == 'function' && define.amd) {
define(lazySizes);
} else {
window.lazySizes = lazySizes;
}
}(window, function l(window, document, Date) {
}(window, function l(window, document, Date) { // Pass in the windoe Date function also for SSR because the Date class can be lost
'use strict';
/*jshint eqnull:true */

Expand Down Expand Up @@ -64,6 +64,10 @@

var _getAttribute = 'getAttribute';

/**
* Update to bind to window because 'this' becomes null during SSR
* builds.
*/
var addEventListener = window[_addEventListener].bind(window);

var setTimeout = window.setTimeout;
Expand Down
2 changes: 1 addition & 1 deletion lazysizes-umd.min.js

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

6 changes: 5 additions & 1 deletion lazysizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module.exports = lazySizes;
}
}(typeof window != 'undefined' ?
window : {}, function l(window, document, Date) {
window : {}, function l(window, document, Date) { // Pass in the windoe Date function also for SSR because the Date class can be lost
'use strict';
/*jshint eqnull:true */

Expand Down Expand Up @@ -62,6 +62,10 @@

var _getAttribute = 'getAttribute';

/**
* Update to bind to window because 'this' becomes null during SSR
* builds.
*/
var addEventListener = window[_addEventListener].bind(window);

var setTimeout = window.setTimeout;
Expand Down
Loading

0 comments on commit a0a0a38

Please sign in to comment.